Skip to content

Commit 1350bc5

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
mac_neighbor_info() macro defned for simplify code
1 parent 41b84e4 commit 1350bc5

30 files changed

+150
-148
lines changed

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,12 @@ static int8_t mle_set_link_priority(protocol_interface_info_entry_t *cur, const
437437
uint8_t mac64[8];
438438
mac_neighbor_table_entry_t *entry;
439439
if (!memcmp(address, ADDR_SHORT_ADR_SUFFIC, 6)) {
440-
entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, address + 6, ADDR_802_15_4_SHORT);
440+
entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), address + 6, ADDR_802_15_4_SHORT);
441441
} else {
442442

443443
memcpy(mac64, address, 8);
444444
mac64[0] ^= 2;
445-
entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, mac64, ADDR_802_15_4_LONG);
445+
entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), mac64, ADDR_802_15_4_LONG);
446446
}
447447

448448
if (!entry) {
@@ -483,7 +483,7 @@ uint16_t protocol_6lowpan_neighbor_priority_set(int8_t interface_id, addrtype_t
483483
return 0;
484484
}
485485

486-
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, addr_ptr + PAN_ID_LEN, addr_type);
486+
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), addr_ptr + PAN_ID_LEN, addr_type);
487487

488488
if (entry) {
489489
etx_storage_t *etx_entry = etx_storage_entry_get(interface_id, entry->index);
@@ -516,7 +516,7 @@ uint16_t protocol_6lowpan_neighbor_second_priority_set(int8_t interface_id, addr
516516
return 0;
517517
}
518518

519-
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, addr_ptr + PAN_ID_LEN, addr_type);
519+
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), addr_ptr + PAN_ID_LEN, addr_type);
520520

521521
if (entry) {
522522
etx_storage_t *etx_entry = etx_storage_entry_get(interface_id, entry->index);
@@ -542,7 +542,7 @@ void protocol_6lowpan_neighbor_priority_clear_all(int8_t interface_id, neighbor_
542542
if (!cur) {
543543
return;
544544
}
545-
mac_neighbor_table_list_t *mac_table_list = &cur->mac_parameters->mac_neighbor_table->neighbour_list;
545+
mac_neighbor_table_list_t *mac_table_list = &mac_neighbor_info(cur)->neighbour_list;
546546

547547
ns_list_foreach(mac_neighbor_table_entry_t, entry, mac_table_list) {
548548
if (priority == PRIORITY_1ST && entry->link_role == PRIORITY_PARENT_NEIGHBOUR) {
@@ -566,7 +566,7 @@ int8_t protocol_6lowpan_neighbor_address_state_synch(protocol_interface_info_ent
566566
{
567567
int8_t ret_val = -1;
568568

569-
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, eui64, ADDR_802_15_4_LONG);
569+
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), eui64, ADDR_802_15_4_LONG);
570570
if (entry) {
571571
if (memcmp(iid, ADDR_SHORT_ADR_SUFFIC, 6) == 0) {
572572
iid += 6;
@@ -575,7 +575,7 @@ int8_t protocol_6lowpan_neighbor_address_state_synch(protocol_interface_info_ent
575575
}
576576
if (!entry->ffd_device) {
577577
if (entry->connected_device) {
578-
mac_neighbor_table_neighbor_refresh(cur->mac_parameters->mac_neighbor_table, entry, entry->link_lifetime);
578+
mac_neighbor_table_neighbor_refresh(mac_neighbor_info(cur), entry, entry->link_lifetime);
579579
}
580580
ret_val = 1;
581581
} else {
@@ -587,9 +587,9 @@ int8_t protocol_6lowpan_neighbor_address_state_synch(protocol_interface_info_ent
587587

588588
int8_t protocol_6lowpan_neighbor_remove(protocol_interface_info_entry_t *cur, uint8_t *address_ptr, addrtype_t type)
589589
{
590-
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, address_ptr, type);
590+
mac_neighbor_table_entry_t * entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), address_ptr, type);
591591
if (entry) {
592-
mac_neighbor_table_neighbor_remove(cur->mac_parameters->mac_neighbor_table, entry);
592+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), entry);
593593
}
594594
return 0;
595595
}

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan_bootstrap.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static bool protocol_6lowpan_challenge_callback(int8_t interface_id, uint16_t ms
208208
memcpy(mac64, ll64_ptr + 8, 8);
209209
mac64[0] ^= 2;
210210

211-
mac_neighbor_table_entry_t * neig_info = mac_neighbor_table_address_discover(cur_interface->mac_parameters->mac_neighbor_table, mac64, ADDR_802_15_4_LONG);
211+
mac_neighbor_table_entry_t * neig_info = mac_neighbor_table_address_discover(mac_neighbor_info(cur_interface), mac64, ADDR_802_15_4_LONG);
212212

213213
if (!neig_info) {
214214
return false;//Why entry is removed before timeout??
@@ -222,7 +222,7 @@ static bool protocol_6lowpan_challenge_callback(int8_t interface_id, uint16_t ms
222222

223223
if (usedAllRetries) {
224224
//GET entry
225-
mac_neighbor_table_neighbor_remove(cur_interface->mac_parameters->mac_neighbor_table, neig_info);
225+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur_interface), neig_info);
226226
return false;
227227
}
228228

@@ -407,7 +407,7 @@ static uint8_t *mle_table_set_neighbours(protocol_interface_info_entry_t *cur, u
407407
// defaults: complete, 2 bytes long link-layer address
408408
link_flags_ptr = ptr++;
409409
*link_flags_ptr = 0x81;
410-
if (mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, short_temp,ADDR_802_15_4_SHORT)) {
410+
if (mac_neighbor_table_address_discover(mac_neighbor_info(cur), short_temp,ADDR_802_15_4_SHORT)) {
411411
*link_flags_ptr |= 0x07;
412412
neigh_count_max = mle_advert_neigh_cnt(cur, false);
413413
} else {
@@ -490,7 +490,7 @@ static int protocol_6lowpan_mle_neigh_advertise(protocol_interface_info_entry_t
490490
return 0;
491491
}
492492

493-
if (mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, short_temp,ADDR_802_15_4_SHORT)) {
493+
if (mac_neighbor_table_address_discover(mac_neighbor_info(cur), short_temp,ADDR_802_15_4_SHORT)) {
494494
neig_cache_size += mle_advert_neigh_cnt(cur, false) * 10;
495495
} else {
496496
neig_cache_size += mle_advert_neigh_cnt(cur, true) << 2;
@@ -565,7 +565,7 @@ static void mle_neigh_time_and_mode_update(mac_neighbor_table_entry_t *entry_tem
565565
timeout_tlv = mle_6lowpan_data->host_lifetime;
566566
}
567567
}
568-
mac_neighbor_table_neighbor_refresh(cur->mac_parameters->mac_neighbor_table, entry_temp, timeout_tlv);
568+
mac_neighbor_table_neighbor_refresh(mac_neighbor_info(cur), entry_temp, timeout_tlv);
569569
}
570570

571571
static void mle_neigh_entry_update_by_mle_tlv_list(int8_t interface_id, mac_neighbor_table_entry_t *entry_temp, uint8_t *tlv_ptr, uint16_t tlv_length, uint8_t *mac64, uint16_t short_address)
@@ -729,10 +729,10 @@ static int mle_router_accept_request_build(protocol_interface_info_entry_t *cur,
729729

730730
static void protocol_6lowpan_link_reject_handler(protocol_interface_info_entry_t *cur, uint8_t *ll64)
731731
{
732-
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, ll64, false, NULL);
732+
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), ll64, false, NULL);
733733
tr_debug("MLE link reject");
734734
if (mac_entry) {
735-
mac_neighbor_table_neighbor_remove(cur->mac_parameters->mac_neighbor_table, mac_entry);
735+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), mac_entry);
736736
}
737737
}
738738

@@ -1048,7 +1048,7 @@ void mle_6lowpan_message_handler(int8_t interface_id, mle_message_t *mle_msg, ml
10481048
mle_6lowpan_data->link_req_token_bucket--;
10491049
} else {
10501050
//Update only old information based on link request
1051-
entry_temp = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, mle_msg->packet_src_address, false, NULL);
1051+
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, false, NULL);
10521052
if (entry_temp) {
10531053
mle_neigh_time_and_mode_update(entry_temp,mle_msg);
10541054
mle_neigh_entry_update_by_mle_tlv_list(interface_id, entry_temp, mle_msg->data_ptr, mle_msg->data_length, cur->mac, own_mac16);
@@ -1084,11 +1084,11 @@ void mle_6lowpan_message_handler(int8_t interface_id, mle_message_t *mle_msg, ml
10841084
}
10851085

10861086
tr_debug("Accept & Request");
1087-
entry_temp = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, mle_msg->packet_src_address, false, NULL);
1087+
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, false, NULL);
10881088
if (!entry_temp) {
10891089
// If there is space for neighbors try to allocate new entry
10901090
if (mle_6lowpan_neighbor_limit_check(mle_msg, true)) {
1091-
entry_temp = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, mle_msg->packet_src_address, true, NULL);
1091+
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, true, NULL);
10921092
}
10931093
}
10941094

@@ -1148,7 +1148,7 @@ void mle_6lowpan_message_handler(int8_t interface_id, mle_message_t *mle_msg, ml
11481148
t_ptr = mle_tlv_info.dataPtr;
11491149
mode = *t_ptr;
11501150
}
1151-
entry_temp = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, mle_msg->packet_src_address, false, NULL);
1151+
entry_temp = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), mle_msg->packet_src_address, false, NULL);
11521152
if (!entry_temp) {
11531153
if ((mode & MLE_DEV_MASK) == MLE_FFD_DEV) {
11541154
// If there is space for neighbors synchronizes to new router
@@ -1183,7 +1183,7 @@ void mle_6lowpan_message_handler(int8_t interface_id, mle_message_t *mle_msg, ml
11831183
//Possible remove
11841184
if ((mode & MLE_DEV_MASK) == MLE_RFD_DEV) {
11851185
//Remove Entry
1186-
mac_neighbor_table_neighbor_remove(cur->mac_parameters->mac_neighbor_table, entry_temp);
1186+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), entry_temp);
11871187
tr_error("MLE adv: Own address not found");
11881188
return;
11891189
}
@@ -1196,7 +1196,7 @@ void mle_6lowpan_message_handler(int8_t interface_id, mle_message_t *mle_msg, ml
11961196
mle_neigh_entry_update_by_mle_tlv_list(cur->id,entry_temp, mle_msg->data_ptr, mle_msg->data_length, cur->mac, own_mac16);
11971197
mle_neigh_entry_frame_counter_update(entry_temp, mle_msg->data_ptr, mle_msg->data_length, cur, security_headers->KeyIndex);
11981198
if (entry_temp->connected_device) {
1199-
mac_neighbor_table_neighbor_refresh(cur->mac_parameters->mac_neighbor_table, entry_temp, entry_temp->link_lifetime);
1199+
mac_neighbor_table_neighbor_refresh(mac_neighbor_info(cur), entry_temp, entry_temp->link_lifetime);
12001200
}
12011201
}
12021202
break;
@@ -1294,7 +1294,7 @@ static void protocol_6lowpan_mle_purge_neighbors(struct protocol_interface_info_
12941294

12951295
// Sends REJECT
12961296
mle_service_reject_message_build(cur_interface->id, ll64, false);
1297-
mac_neighbor_table_neighbor_remove(cur_interface->mac_parameters->mac_neighbor_table, entry);
1297+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur_interface), entry);
12981298

12991299
// Adds purged neighbor to blacklist so that it is not added right away back from advertisement
13001300
blacklist_update(ll64, false);
@@ -1679,16 +1679,16 @@ int8_t arm_6lowpan_bootstarp_bootstrap_set(int8_t interface_id, net_6lowpan_mode
16791679
cur->mac_security_key_usage_update_cb = arm_6lowpan_security_key_update_cb;
16801680
//Allocate MLE class here
16811681
//Deallocate old here
1682-
mac_neighbor_table_delete(cur->mac_parameters->mac_neighbor_table);
1682+
mac_neighbor_table_delete(mac_neighbor_info(cur));
16831683
mac_description_storage_size_t buffer;
16841684
//Read MAC device table sizes
16851685
if (cur->mac_api->mac_storage_sizes_get(cur->mac_api, &buffer) != 0) {
16861686
return -1;
16871687
}
16881688

1689-
cur->mac_parameters->mac_neighbor_table = mac_neighbor_table_create(buffer.device_decription_table_size, lowpan_neighbor_entry_remove_notify
1689+
mac_neighbor_info(cur) = mac_neighbor_table_create(buffer.device_decription_table_size, lowpan_neighbor_entry_remove_notify
16901690
, lowpan_neighbor_entry_nud_notify, cur);
1691-
if (!cur->mac_parameters->mac_neighbor_table) {
1691+
if (!mac_neighbor_info(cur)) {
16921692
return -1;
16931693
}
16941694

@@ -1973,7 +1973,7 @@ static void protocol_6lowpan_nd_ready(protocol_interface_info_entry_t *cur)
19731973
addrtype_t addrType;
19741974
uint8_t tempAddr[8];
19751975
addrType = mac_helper_coordinator_address_get(cur, tempAddr);
1976-
mac_neighbor_table_entry_t * neig_info = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, tempAddr, addrType);
1976+
mac_neighbor_table_entry_t * neig_info = mac_neighbor_table_address_discover(mac_neighbor_info(cur), tempAddr, addrType);
19771977

19781978
if (neig_info) {
19791979
if (neig_info->lifetime > MLE_TABLE_CHALLENGE_TIMER) {
@@ -2798,10 +2798,10 @@ static void lowpan_comm_status_indication_cb(int8_t if_id, const mlme_comm_statu
27982798

27992799
break;
28002800
case MLME_DATA_POLL_NOTIFICATION:
2801-
entry_ptr = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, status->SrcAddr, status->SrcAddrMode);
2801+
entry_ptr = mac_neighbor_table_address_discover(mac_neighbor_info(cur), status->SrcAddr, status->SrcAddrMode);
28022802
if (entry_ptr) {
28032803
// Refresh Timeout
2804-
mac_neighbor_table_neighbor_refresh(cur->mac_parameters->mac_neighbor_table, entry_ptr, entry_ptr->link_lifetime);
2804+
mac_neighbor_table_neighbor_refresh(mac_neighbor_info(cur), entry_ptr, entry_ptr->link_lifetime);
28052805
}
28062806
break;
28072807
default:
@@ -2817,13 +2817,13 @@ bool lowpan_neighbour_data_clean(int8_t interface_id, const uint8_t *link_local_
28172817
return false;
28182818
}
28192819
bool return_value = false;
2820-
mac_neighbor_table_entry_t *neigh_entry = mac_neighbor_entry_get_by_ll64(cur->mac_parameters->mac_neighbor_table, link_local_address, false, NULL);
2820+
mac_neighbor_table_entry_t *neigh_entry = mac_neighbor_entry_get_by_ll64(mac_neighbor_info(cur), link_local_address, false, NULL);
28212821
if (neigh_entry) {
28222822
//Remove entry
28232823
if (neigh_entry->link_role == PRIORITY_PARENT_NEIGHBOUR || neigh_entry->link_role == SECONDARY_PARENT_NEIGHBOUR) {
28242824
return_value = true;
28252825
}
2826-
mac_neighbor_table_neighbor_remove(cur->mac_parameters->mac_neighbor_table, neigh_entry);
2826+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(cur), neigh_entry);
28272827
}
28282828
return return_value;
28292829
}

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int8_t set_6lowpan_nwk_down(protocol_interface_info_entry_t *cur)
8282
/* Change Active -> Idle */
8383
/* Disable Protocols Timers */
8484
if (!thread_info(cur)) {
85-
mac_neighbor_table_neighbor_list_clean(cur->mac_parameters->mac_neighbor_table);
85+
mac_neighbor_table_neighbor_list_clean(mac_neighbor_info(cur));
8686
#ifndef NO_MLE
8787
if (cur->lowpan_info & INTERFACE_NWK_BOOTSRAP_MLE) {
8888

source/6LoWPAN/MAC/mac_data_poll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void mac_poll_timer_trig(uint32_t poll_time, protocol_interface_info_entry_t *cu
284284
}
285285
static mac_neighbor_table_entry_t *neighbor_data_poll_referesh(protocol_interface_info_entry_t *cur, uint8_t *address, addrtype_t type)
286286
{
287-
mac_neighbor_table_entry_t *entry = mac_neighbor_table_address_discover(cur->mac_parameters->mac_neighbor_table, address, type);
287+
mac_neighbor_table_entry_t *entry = mac_neighbor_table_address_discover(mac_neighbor_info(cur), address, type);
288288
if (!entry) {
289289
return NULL;
290290
}

source/6LoWPAN/MAC/mac_pairwise_key.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ static void mac_pairwise_key_list_free(protocol_interface_info_entry_t *interfac
175175
mac_neighbor_table_entry_t *cur_entry;
176176
mac_pairwise_key_info_t *cur = main_list->mac_pairwise_key_table;
177177
for (uint8_t i = 0; i< main_list->key_table_size; i++) {
178-
cur_entry = mac_neighbor_table_attribute_discover(interface->mac_parameters->mac_neighbor_table, cur->device_descriptor_attribute);
178+
cur_entry = mac_neighbor_table_attribute_discover(mac_neighbor_info(interface), cur->device_descriptor_attribute);
179179
if (cur_entry) {
180-
mac_neighbor_table_neighbor_remove(interface->mac_parameters->mac_neighbor_table, cur_entry);
180+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(interface), cur_entry);
181181
}
182182
mac_helper_security_pairwisekey_set(interface, NULL, NULL, cur->key_decriptor_attribute);
183183
}
@@ -267,20 +267,20 @@ int mac_pairwise_key_add(int8_t interface_id, uint32_t valid_life_time, const ui
267267
}
268268

269269
//Allocate mle entry
270-
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_mac64(interface->mac_parameters->mac_neighbor_table, eui64, true, &new_entry_created);
270+
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_mac64(mac_neighbor_info(interface), eui64, true, &new_entry_created);
271271
if (!mac_entry) {
272272
return -1;
273273
}
274274

275-
mac_neighbor_table_trusted_neighbor(interface->mac_parameters->mac_neighbor_table, mac_entry, true);
275+
mac_neighbor_table_trusted_neighbor(mac_neighbor_info(interface), mac_entry, true);
276276
mac_entry->mac16 = 0xffff;
277277

278278
//Allocate key description
279279

280280
mac_pairwise_key_info_t *key_desc = mac_pairwise_key_info_get(main_list, mac_entry->index);
281281

282282
if (!key_desc) {
283-
mac_neighbor_table_neighbor_remove(interface->mac_parameters->mac_neighbor_table, mac_entry);
283+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(interface), mac_entry);
284284
return -1;
285285
}
286286

@@ -291,7 +291,7 @@ int mac_pairwise_key_add(int8_t interface_id, uint32_t valid_life_time, const ui
291291
//set key descriptor
292292
if (mac_helper_security_pairwisekey_set(interface, key, eui64, key_desc->key_decriptor_attribute) != 0) {
293293
main_list->key_table_size--;
294-
mac_neighbor_table_neighbor_remove(interface->mac_parameters->mac_neighbor_table, mac_entry);
294+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(interface), mac_entry);
295295
return -1;
296296
}
297297

@@ -312,7 +312,7 @@ int mac_pairwise_key_del(int8_t interface_id, const uint8_t eui64[static 8])
312312
return -1;
313313
}
314314
//Get from mac
315-
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_mac64(interface->mac_parameters->mac_neighbor_table, eui64, true, NULL);
315+
mac_neighbor_table_entry_t *mac_entry = mac_neighbor_entry_get_by_mac64(mac_neighbor_info(interface), eui64, true, NULL);
316316
if (!mac_entry) {
317317
return -1;
318318
}
@@ -327,7 +327,7 @@ int mac_pairwise_key_del(int8_t interface_id, const uint8_t eui64[static 8])
327327
//kill Entry & overwrite key
328328
mac_helper_security_pairwisekey_set(interface, NULL, NULL, key_attribute);
329329

330-
mac_neighbor_table_neighbor_remove(interface->mac_parameters->mac_neighbor_table, mac_entry);
330+
mac_neighbor_table_neighbor_remove(mac_neighbor_info(interface), mac_entry);
331331

332332
return 0;
333333
}

source/6LoWPAN/MAC/mac_response_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static void mac_mlme_device_table_confirmation_handle(protocol_interface_info_en
4949

5050
if (confirmation->status == MLME_SUCCESS) {
5151
//GET ME table by extended mac64 address
52-
mac_neighbor_table_entry_t *entry = mac_neighbor_table_address_discover(info_entry->mac_parameters->mac_neighbor_table, descpription->ExtAddress, ADDR_802_15_4_LONG);
52+
mac_neighbor_table_entry_t *entry = mac_neighbor_table_address_discover(mac_neighbor_info(info_entry), descpription->ExtAddress, ADDR_802_15_4_LONG);
5353

5454
if (!entry) {
5555
return;

0 commit comments

Comments
 (0)