mac802154: Avoid new associations while disassociating
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Nov 2023 11:16:55 +0000 (12:16 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Dec 2023 10:14:57 +0000 (11:14 +0100)
commit2373699560a754079579b7722b50d1d38de1960e
tree96f7a25ef1181e69e15f135587aa71440f0945f2
parentb720383ab1cfd584c8c0d9fc7b8cc541ed76dba5
mac802154: Avoid new associations while disassociating

While disassociating from a PAN ourselves, let's set the maximum number
of associations temporarily to zero to be sure no new device tries to
associate with us.

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/20231128111655.507479-6-miquel.raynal@bootlin.com
include/net/cfg802154.h
net/ieee802154/pan.c
net/mac802154/cfg.c