File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2807,6 +2807,10 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
2807
2807
selected_parent_ptr = ws_bootstrap_candidate_parent_get_best (cur );
2808
2808
2809
2809
if (!selected_parent_ptr ) {
2810
+ // Configure LLC for network discovery
2811
+ ws_bootstrap_network_discovery_configure (cur );
2812
+ // randomize new channel and start MAC
2813
+ ws_bootstrap_fhss_activate (cur );
2810
2814
// Next check will be after one trickle
2811
2815
cur -> bootsrap_state_machine_cnt += cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
2812
2816
tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
@@ -2825,9 +2829,6 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
2825
2829
//Remove Neighbour and set Link setup back
2826
2830
ns_list_remove (& cur -> ws_info -> parent_list_reserved , selected_parent_ptr );
2827
2831
ns_list_add_to_end (& cur -> ws_info -> parent_list_free , selected_parent_ptr );
2828
- // Configure LLC for network discovery
2829
- ws_bootstrap_network_discovery_configure (cur );
2830
- ws_bootstrap_fhss_activate (cur );
2831
2832
goto select_best_candidate ;
2832
2833
}
2833
2834
You can’t perform that action at this time.
0 commit comments