Skip to content

Commit a666056

Browse files
router short address set to 0xfffe for non routers (ARMmbed#1543)
upon receiving child id response. This prevents the REED from requesting a child address when trying to upgrade.
1 parent 759ab05 commit a666056

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/6LoWPAN/Thread/thread_host_bootstrap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ static void thread_mle_child_request_receive_cb(int8_t interface_id, mle_message
835835
thread_info(cur)->thread_attached_state = THREAD_STATE_CONNECTED;
836836

837837
thread_bootstrap_update_ml16_address(cur, childId);
838+
if (!thread_is_router_addr(thread_info(cur)->routerShortAddress)) {
839+
thread_info(cur)->routerShortAddress = 0xfffe;
840+
}
838841

839842
mle_service_msg_free(scan_result->child_id_request_id);
840843

0 commit comments

Comments
 (0)