ieee802154: Add support for limiting the number of associated devices
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Sep 2023 18:12:11 +0000 (20:12 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 20 Nov 2023 10:43:11 +0000 (11:43 +0100)
commitce93b9378c306e6bcc4e0bd817acf4195b4a0288
tree4c7f07c23df129cb6de67409cdb49a9ba4f346b9
parent601f160b61b2152ef84a663f856350d5dd9e752a
ieee802154: Add support for limiting the number of associated devices

Coordinators may refuse associations. We need a user input for
that. Let's add a new netlink command which can provide a maximum number
of devices we accept to associate with as a first step. Later, we could
also forward the request to userspace and check whether the association
should be accepted or not.

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-9-miquel.raynal@bootlin.com
include/net/cfg802154.h
include/net/nl802154.h
net/ieee802154/core.c
net/ieee802154/nl802154.c
net/ieee802154/pan.c