From: Miquel Raynal Date: Fri, 10 Mar 2023 14:53:43 +0000 (+0100) Subject: ieee802154: Add support for user active scan requests X-Git-Tag: v6.5-rc1~163^2~14^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8866426411c34489b0265bf720b4d917c8d4795;p=thirdparty%2Fkernel%2Flinux.git ieee802154: Add support for user active scan requests In case a passive scan could not discover any PAN, a device may decide to perform an active scan to force coordinators to send a BEACON "immediately". Allow users to request to perform an active scan. Signed-off-by: Miquel Raynal Acked-by: Alexander Aring Link: https://lore.kernel.org/r/20230310145346.1397068-2-miquel.raynal@bootlin.com Signed-off-by: Stefan Schmidt --- diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c index d8f4379d4fa68..42e531aefe86a 100644 --- a/net/ieee802154/nl802154.c +++ b/net/ieee802154/nl802154.c @@ -1426,6 +1426,7 @@ static int nl802154_trigger_scan(struct sk_buff *skb, struct genl_info *info) type = nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE]); switch (type) { + case NL802154_SCAN_ACTIVE: case NL802154_SCAN_PASSIVE: request->type = type; break;