Fix link layer address retrieval from flash
This commit is contained in:
parent
6d57dd0e7e
commit
dc8aa6aeca
@ -108,7 +108,7 @@ set_rf_params(void)
|
|||||||
{
|
{
|
||||||
uint8_t ext_addr[8];
|
uint8_t ext_addr[8];
|
||||||
|
|
||||||
#if MAKE_MAC == MAKE_MAC_BLE
|
#if MAC_CONF_WITH_BLE
|
||||||
ble_eui64_addr_cpy_to((uint8_t *)&ext_addr);
|
ble_eui64_addr_cpy_to((uint8_t *)&ext_addr);
|
||||||
NETSTACK_RADIO.set_object(RADIO_PARAM_64BIT_ADDR, ext_addr, 8);
|
NETSTACK_RADIO.set_object(RADIO_PARAM_64BIT_ADDR, ext_addr, 8);
|
||||||
#else
|
#else
|
||||||
@ -181,7 +181,7 @@ platform_init_stage_two()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Populate linkaddr_node_addr */
|
/* Populate linkaddr_node_addr */
|
||||||
#if MAKE_MAC == MAKE_MAC_BLE
|
#if MAC_CONF_WITH_BLE
|
||||||
uint8_t ext_addr[8];
|
uint8_t ext_addr[8];
|
||||||
ble_eui64_addr_cpy_to((uint8_t *)&ext_addr);
|
ble_eui64_addr_cpy_to((uint8_t *)&ext_addr);
|
||||||
memcpy(&linkaddr_node_addr, &ext_addr[8 - LINKADDR_SIZE], LINKADDR_SIZE);
|
memcpy(&linkaddr_node_addr, &ext_addr[8 - LINKADDR_SIZE], LINKADDR_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user