diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-10 15:53:43 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2023-03-23 21:50:49 +0100 |
commit | b8866426411c34489b0265bf720b4d917c8d4795 (patch) | |
tree | d6aa7099ac0b22a3b1beac5c7038142fde492cac /net | |
parent | fcb3a4653bc5fb0525d957db0cc8b413252029f8 (diff) | |
download | linux-b8866426411c34489b0265bf720b4d917c8d4795.tar.gz linux-b8866426411c34489b0265bf720b4d917c8d4795.tar.bz2 linux-b8866426411c34489b0265bf720b4d917c8d4795.zip |
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 <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20230310145346.1397068-2-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/nl802154.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c index d8f4379d4fa6..42e531aefe86 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; |