1
0
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:
Koen Zandberg 2019-03-04 23:27:37 +01:00 committed by GitHub
commit e863adaca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);