mac80254: Provide real PAN coordinator info in beacons
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Nov 2023 11:16:51 +0000 (12:16 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Dec 2023 10:14:49 +0000 (11:14 +0100)
commitcf1b830e625baaee5bf1ae4ba4b562cbec5ad012
tree5b730374afa4a0a6b411b6da7b781bfc865c4120
parent83fcf26b00d77e4a0ec920524fe85350a27e9c05
mac80254: Provide real PAN coordinator info in beacons

Sending a beacon is a way to advertise a PAN, but also ourselves as
coordinator in the PAN. There is only one PAN coordinator in a PAN, this
is the device without parent (not associated itself to an "upper"
coordinator). Instead of blindly saying that we are the PAN coordinator,
let's actually use our internal information to fill this field.

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-2-miquel.raynal@bootlin.com
net/mac802154/scan.c