Skip to content

Commit b886642

Browse files
miquelraynalStefan-Schmidt
authored andcommitted
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>
1 parent fcb3a46 commit b886642

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/ieee802154/nl802154.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,7 @@ static int nl802154_trigger_scan(struct sk_buff *skb, struct genl_info *info)
14261426

14271427
type = nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE]);
14281428
switch (type) {
1429+
case NL802154_SCAN_ACTIVE:
14291430
case NL802154_SCAN_PASSIVE:
14301431
request->type = type;
14311432
break;

0 commit comments

Comments
 (0)