summaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-03-10 15:53:45 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2023-03-23 21:51:21 +0100
commit26f88e4ebd4fbe96fb4326408e2af05644716d76 (patch)
treefb6fa40e0156faa34984b7a2f71bd6744987c4bf /net/ieee802154
parente2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8 (diff)
downloadlinux-26f88e4ebd4fbe96fb4326408e2af05644716d76.tar.gz
linux-26f88e4ebd4fbe96fb4326408e2af05644716d76.tar.bz2
linux-26f88e4ebd4fbe96fb4326408e2af05644716d76.zip
ieee802154: Add support for allowing to answer BEACON_REQ
Accept beaconing configurations from the user which involve answering beacon requests rather than only passively sending beacons. This may help devices to find the PAN more quickly. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Alexander Aring <aahringo@redhat.com> Link: https://lore.kernel.org/r/20230310145346.1397068-4-miquel.raynal@bootlin.com Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/nl802154.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c
index 42e531aefe86..a20ac4bb48a4 100644
--- a/net/ieee802154/nl802154.c
+++ b/net/ieee802154/nl802154.c
@@ -233,7 +233,7 @@ static const struct nla_policy nl802154_policy[NL802154_ATTR_MAX+1] = {
NLA_POLICY_RANGE(NLA_U8, NL802154_SCAN_DONE_REASON_FINISHED,
NL802154_SCAN_DONE_REASON_ABORTED),
[NL802154_ATTR_BEACON_INTERVAL] =
- NLA_POLICY_MAX(NLA_U8, IEEE802154_MAX_SCAN_DURATION),
+ NLA_POLICY_MAX(NLA_U8, IEEE802154_ACTIVE_SCAN_DURATION),
#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
[NL802154_ATTR_SEC_ENABLED] = { .type = NLA_U8, },