Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Miquel Raynal and committed by
Stefan Schmidt
26f88e4e e2c3e6f5

+1 -1
+1 -1
net/ieee802154/nl802154.c
··· 233 233 NLA_POLICY_RANGE(NLA_U8, NL802154_SCAN_DONE_REASON_FINISHED, 234 234 NL802154_SCAN_DONE_REASON_ABORTED), 235 235 [NL802154_ATTR_BEACON_INTERVAL] = 236 - NLA_POLICY_MAX(NLA_U8, IEEE802154_MAX_SCAN_DURATION), 236 + NLA_POLICY_MAX(NLA_U8, IEEE802154_ACTIVE_SCAN_DURATION), 237 237 238 238 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL 239 239 [NL802154_ATTR_SEC_ENABLED] = { .type = NLA_U8, },