@@ -121,12 +121,10 @@ static void thread_merge_prepare(protocol_interface_info_entry_t *cur)
121
121
{
122
122
thread_clean_old_16_bit_address_based_addresses (cur );
123
123
mpl_clear_realm_scope_seeds (cur );
124
- ipv6_neighbour_cache_flush (& cur -> ipv6_neighbour_cache );
125
124
ipv6_route_table_remove_info (cur -> id , ROUTE_THREAD_PROXIED_HOST , NULL );
126
- thread_routing_deactivate (& cur -> thread_info -> routing );
127
- thread_routing_init (& cur -> thread_info -> routing );
128
- cur -> nwk_mode = ARM_NWK_GP_IP_MODE ;
125
+ thread_old_partition_data_purge (cur );
129
126
thread_network_data_clean (cur );
127
+ cur -> nwk_mode = ARM_NWK_GP_IP_MODE ;
130
128
}
131
129
132
130
//This function is for Thread Parent scan callback
@@ -1139,6 +1137,7 @@ int8_t thread_host_bootstrap_child_update(int8_t interface_id, const uint8_t *ma
1139
1137
uint8_t mode ;
1140
1138
uint32_t keySequence ;
1141
1139
1140
+
1142
1141
if (!cur -> thread_info -> thread_endnode_parent ) {
1143
1142
return -1 ;
1144
1143
}
@@ -1199,6 +1198,7 @@ int8_t thread_host_bootstrap_child_update(int8_t interface_id, const uint8_t *ma
1199
1198
mle_service_set_packet_callback (bufId , thread_child_update_timeout_cb );
1200
1199
mle_service_set_msg_timeout_parameters (bufId , & timeout );
1201
1200
mle_service_send_message (bufId );
1201
+
1202
1202
return 0 ;
1203
1203
}
1204
1204
int thread_host_bootstrap_child_update_negative_response (protocol_interface_info_entry_t * cur , uint8_t * dstAddress , mle_tlv_info_t * challenge )
0 commit comments