Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ieee802154: Let PAN IDs be reset

Soon association and disassociation will be implemented, which will
require to be able to either change the PAN ID from 0xFFFF to a real
value when association succeeded, or to reset the PAN ID to 0xFFFF upon
disassociation. Let's allow to do that manually for now.

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-2-miquel.raynal@bootlin.com

-10
-10
net/ieee802154/nl802154.c
··· 1087 1087 1088 1088 pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); 1089 1089 1090 - /* TODO 1091 - * I am not sure about to check here on broadcast pan_id. 1092 - * Broadcast is a valid setting, comment from 802.15.4: 1093 - * If this value is 0xffff, the device is not associated. 1094 - * 1095 - * This could useful to simple deassociate an device. 1096 - */ 1097 - if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) 1098 - return -EINVAL; 1099 - 1100 1090 return rdev_set_pan_id(rdev, wpan_dev, pan_id); 1101 1091 } 1102 1092