@@ -380,7 +380,7 @@ static void thread_router_synch_receive_cb(int8_t interface_id, mle_message_t *m
380380 }
381381
382382 if (thread_is_router_addr (shortAddress )) {
383- entry_temp -> handshakeReady = 1 ;
383+ entry_temp -> connected_device = 1 ;
384384 }
385385
386386 entry_temp -> mode |= MLE_THREAD_REQ_FULL_DATA_SET ;
@@ -1331,7 +1331,7 @@ void thread_router_bootstrap_child_id_handler(protocol_interface_info_entry_t *c
13311331
13321332 mle_entry_timeout_update (entry_temp , req -> timeout );
13331333 entry_temp -> mode = req -> mode ;
1334- entry_temp -> handshakeReady = 1 ;
1334+ entry_temp -> connected_device = 1 ;
13351335 mle_service_frame_counter_entry_add (cur -> id , entry_temp -> attribute_index , req -> mleFrameCounter );
13361336
13371337 if (req -> shortAddressReq ) {
@@ -1747,7 +1747,7 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
17471747 *
17481748 */
17491749
1750- if (entry_temp && entry_temp -> handshakeReady ) {
1750+ if (entry_temp && entry_temp -> connected_device ) {
17511751 mle_entry_timeout_refresh (entry_temp );
17521752 thread_neighbor_class_update_link (& cur -> thread_info -> neighbor_class , entry_temp -> attribute_index ,linkMargin , false);
17531753 thread_neighbor_last_communication_time_update (& cur -> thread_info -> neighbor_class , entry_temp -> attribute_index );
@@ -1785,7 +1785,7 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
17851785 update_mac_mib = true;
17861786 entry_temp -> short_adr = shortAddress ; // short address refreshed
17871787
1788- if (entry_temp -> handshakeReady ) {
1788+ if (entry_temp -> connected_device ) {
17891789 if (mle_tlv_read_tlv (MLE_TYPE_ADDRESS_REGISTRATION , mle_msg -> data_ptr , mle_msg -> data_length , & addressRegisteredTlv )) {
17901790 if (thread_rfd_device (entry_temp -> mode )) {
17911791 thread_address_registration_tlv_parse (addressRegisteredTlv .dataPtr , addressRegisteredTlv .tlvLen , cur , entry_temp -> short_adr , entry_temp -> mac64 );
@@ -1886,7 +1886,7 @@ void thread_router_bootstrap_mle_receive_cb(int8_t interface_id, mle_message_t *
18861886 }
18871887
18881888 if (thread_is_router_addr (shortAddress )) {
1889- entry_temp -> handshakeReady = 1 ;
1889+ entry_temp -> connected_device = 1 ;
18901890 }
18911891
18921892 entry_temp -> mode |= MLE_THREAD_REQ_FULL_DATA_SET ;
@@ -2282,7 +2282,7 @@ int thread_router_bootstrap_route_tlv_push(protocol_interface_info_entry_t *cur,
22822282
22832283 /* XXX Is short_src_adr ever reset? Is it undefined if info not in msg? */
22842284 /* Don't add routing link if MLE link is NOT bi-directional (i.e. we can only hear) */
2285- if (entry -> handshakeReady ) {
2285+ if (entry -> connected_device ) {
22862286 thread_routing_add_link (cur , entry -> short_adr , linkMargin , route_id_seq , router_id_mask , route_data , false);
22872287 }
22882288
0 commit comments