Skip to content

Commit 26f88e4

Browse files
miquelraynalStefan-Schmidt
authored andcommitted
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>
1 parent e2c3e6f commit 26f88e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/ieee802154/nl802154.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static const struct nla_policy nl802154_policy[NL802154_ATTR_MAX+1] = {
233233
NLA_POLICY_RANGE(NLA_U8, NL802154_SCAN_DONE_REASON_FINISHED,
234234
NL802154_SCAN_DONE_REASON_ABORTED),
235235
[NL802154_ATTR_BEACON_INTERVAL] =
236-
NLA_POLICY_MAX(NLA_U8, IEEE802154_MAX_SCAN_DURATION),
236+
NLA_POLICY_MAX(NLA_U8, IEEE802154_ACTIVE_SCAN_DURATION),
237237

238238
#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
239239
[NL802154_ATTR_SEC_ENABLED] = { .type = NLA_U8, },

0 commit comments

Comments
 (0)