Skip to content

Commit

Permalink
Link entry for neighbour (ARMmbed#1749)
Browse files Browse the repository at this point in the history
write link entry in advertisement only if a valid short
address exists for the neighbour.
  • Loading branch information
deepakvenugopal authored Jul 13, 2018
1 parent 5bad8ee commit 49adf2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static uint8_t *mle_table_set_neighbours(protocol_interface_info_entry_t *cur, u

loop_list = false;

if ((cur_entry->connected_device) && (cur_entry->advertisment == false)) {
if ((cur_entry->connected_device) && (cur_entry->advertisment == false) && (cur_entry->mac16 < 0xfffe)) {

// If looping list, stops adding entries when at first sent entry again
if (first_entry_ptr == cur_entry) {
Expand Down

0 comments on commit 49adf2e

Please sign in to comment.