mac802154: Handle received BEACON_REQ
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 10 Mar 2023 14:53:46 +0000 (15:53 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 23 Mar 2023 20:51:30 +0000 (21:51 +0100)
commitd021d218f6d924ff5417c64b2e41d184e4bb32d3
tree4e0ebf71655196d8bdfb7fcfe28e166acfa024b3
parent26f88e4ebd4fbe96fb4326408e2af05644716d76
mac802154: Handle received BEACON_REQ

When performing an active scan, devices emit BEACON_REQ which
must be answered by other PANs receiving the request, unless they are
already passively sending beacons.

Answering a beacon request becomes a duty when the user tells us to send
beacons and the request provides an interval of 15.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20230310145346.1397068-5-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
include/net/ieee802154_netdev.h
net/ieee802154/header_ops.c
net/mac802154/ieee802154_i.h
net/mac802154/main.c
net/mac802154/rx.c
net/mac802154/scan.c