mac802154: Handle associating
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Sep 2023 18:12:07 +0000 (20:12 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 20 Nov 2023 10:42:39 +0000 (11:42 +0100)
commitfefd19807fe9c65002366c749e809996a1ca4e68
treedd8047899c6d50583da8d0d0ae3e32f92c57f4c0
parent05db59a0619969a47ab87050985344177c662cab
mac802154: Handle associating

Joining a PAN officially goes by associating with a coordinator. This
coordinator may have been discovered thanks to the beacons it sent in
the past. Add support to the MAC layer for these associations, which
require:
- Sending an association request
- Receiving an association response

The association response contains the association status, eventually a
reason if the association was unsuccessful, and finally a short address
that we should use for intra-PAN communication from now on, if we
required one (which is the default, and not yet configurable).

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-5-miquel.raynal@bootlin.com
include/net/ieee802154_netdev.h
net/ieee802154/core.c
net/mac802154/cfg.c
net/mac802154/ieee802154_i.h
net/mac802154/main.c
net/mac802154/rx.c
net/mac802154/scan.c