Skip to content
Snippets Groups Projects
Commit 824fcf3c authored by Hauke Petersen's avatar Hauke Petersen
Browse files

cpu/nrf52/nrf802154: unify address generation

parent 7cb1049e
No related branches found
No related tags found
No related merge requests found
...@@ -230,8 +230,9 @@ static int _init(netdev_t *dev) ...@@ -230,8 +230,9 @@ static int _init(netdev_t *dev)
NRF_RADIO->CRCINIT = 0; NRF_RADIO->CRCINIT = 0;
/* assign default addresses */ /* assign default addresses */
luid_get(nrf802154_dev.short_addr, IEEE802154_SHORT_ADDRESS_LEN);
luid_get(nrf802154_dev.long_addr, IEEE802154_LONG_ADDRESS_LEN); luid_get(nrf802154_dev.long_addr, IEEE802154_LONG_ADDRESS_LEN);
memcpy(nrf802154_dev.short_addr, &nrf802154_dev.long_addr[6],
IEEE802154_SHORT_ADDRESS_LEN);
/* set default channel */ /* set default channel */
_set_chan(nrf802154_dev.chan); _set_chan(nrf802154_dev.chan);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment