mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #11100 from haukepetersen/opt_nrf802154_addrgen
cpu/nrf52/nrf802154: unify address generation
This commit is contained in:
commit
e863adaca2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user