Merge pull request #356 from g-oikonomou/bugfix/cc13xx-cc26xx/bad-mac

Fix link layer address retrieval from flash
This commit is contained in:
Simon Duquennoy 2018-03-19 19:43:07 +01:00 committed by GitHub
commit cc0887b87d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ set_rf_params(void)
{
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);
NETSTACK_RADIO.set_object(RADIO_PARAM_64BIT_ADDR, ext_addr, 8);
#else
@ -181,7 +181,7 @@ platform_init_stage_two()
#endif
/* Populate linkaddr_node_addr */
#if MAKE_MAC == MAKE_MAC_BLE
#if MAC_CONF_WITH_BLE
uint8_t ext_addr[8];
ble_eui64_addr_cpy_to((uint8_t *)&ext_addr);
memcpy(&linkaddr_node_addr, &ext_addr[8 - LINKADDR_SIZE], LINKADDR_SIZE);