mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
netdev_ieee802154: Add PAN ID to reset function
This commit adds the reset of the PAN ID to the generic ieee802154 reset function.
This commit is contained in:
parent
12049a5779
commit
167858077f
@ -63,6 +63,10 @@ void netdev_ieee802154_reset(netdev_ieee802154_t *dev)
|
||||
#elif MODULE_GNRC
|
||||
dev->proto = GNRC_NETTYPE_UNDEF;
|
||||
#endif
|
||||
|
||||
/* Initialize PAN ID and call netdev::set to propagate it */
|
||||
dev->pan = IEEE802154_DEFAULT_PANID;
|
||||
dev->netdev.driver->set(&dev->netdev, NETOPT_NID, &dev->pan, sizeof(dev->pan));
|
||||
}
|
||||
|
||||
int netdev_ieee802154_get(netdev_ieee802154_t *dev, netopt_t opt, void *value,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user