mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
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>
This commit is contained in:
parent
fcb3a4653b
commit
b886642641
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue