Skip to content

Commit 6fd6bd5

Browse files
author
Arto Kinnunen
authored
Update thread neighbor table initialisation (ARMmbed#1926)
Initialise "full data request" bit if link request is received from router.
1 parent c09d38a commit 6fd6bd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/Thread/thread_router_bootstrap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,11 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
18111811
update_mac_mib = true;
18121812
entry_temp->mac16 = shortAddress; // short address refreshed
18131813

1814+
if (thread_is_router_addr(shortAddress)) {
1815+
// Set full data as REED/Router needs full data (SED will not make links)
1816+
thread_neighbor_class_request_full_data_setup_set(&cur->thread_info->neighbor_class, entry_temp->index, true);
1817+
}
1818+
18141819
if (entry_temp->connected_device) {
18151820
if (mle_tlv_read_tlv(MLE_TYPE_ADDRESS_REGISTRATION, mle_msg->data_ptr, mle_msg->data_length, &addressRegisteredTlv)) {
18161821
if (!entry_temp->ffd_device) {

0 commit comments

Comments
 (0)