mac802154: Handle association requests from peers
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Sep 2023 18:12:10 +0000 (20:12 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 20 Nov 2023 10:43:03 +0000 (11:43 +0100)
commit601f160b61b2152ef84a663f856350d5dd9e752a
tree035f2a6481882b2079378a5075c41c39e27612ff
parent9860d9be89f420f3793fb798faadea11c723e08a
mac802154: Handle association requests from peers

Coordinators may have to handle association requests from peers which
want to join the PAN. The logic involves:
- Acknowledging the request (done by hardware)
- If requested, a random short address that is free on this PAN should
  be chosen for the device.
- Sending an association response with the short address allocated for
  the peer and expecting it to be ack'ed.

If anything fails during this procedure, the peer is considered not
associated.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/linux-wpan/20230927181214.129346-8-miquel.raynal@bootlin.com
include/net/cfg802154.h
include/net/ieee802154_netdev.h
net/ieee802154/core.c
net/ieee802154/pan.c
net/mac802154/ieee802154_i.h
net/mac802154/rx.c
net/mac802154/scan.c