Skip to content
Snippets Groups Projects
Unverified Commit e863adac authored by Koen Zandberg's avatar Koen Zandberg Committed by GitHub
Browse files

Merge pull request #11100 from haukepetersen/opt_nrf802154_addrgen

cpu/nrf52/nrf802154: unify address generation
parents 1bed5684 824fcf3c
Branches
No related tags found
No related merge requests found
......@@ -230,8 +230,9 @@ static int _init(netdev_t *dev)
NRF_RADIO->CRCINIT = 0;
/* assign default addresses */
luid_get(nrf802154_dev.short_addr, IEEE802154_SHORT_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_chan(nrf802154_dev.chan);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment