@@ -451,6 +451,12 @@ static int8_t ws_fhss_enable(protocol_interface_info_entry_t *cur)
451
451
*/
452
452
static void ws_bootstrap_primary_parent_set (struct protocol_interface_info_entry * cur , llc_neighbour_req_t * neighbor_info )
453
453
{
454
+ if (neighbor_info -> ws_neighbor -> fhss_data .bc_timing_info .broadcast_dwell_interval == 0 ||
455
+ neighbor_info -> ws_neighbor -> fhss_data .bc_timing_info .broadcast_interval == 0 ) {
456
+ tr_debug ("Parent synch fail by missing BT information" );
457
+ return ;
458
+ }
459
+
454
460
455
461
fhss_ws_configuration_t fhss_configuration ;
456
462
memcpy (& fhss_configuration , ns_fhss_ws_configuration_get (cur -> ws_info -> fhss_api ), sizeof (fhss_ws_configuration_t ));
@@ -469,10 +475,8 @@ static void ws_bootstrap_primary_parent_set(struct protocol_interface_info_entry
469
475
fhss_configuration .broadcast_fixed_channel = cur -> ws_info -> fhss_bc_fixed_channel ;
470
476
ns_fhss_ws_configuration_set (cur -> ws_info -> fhss_api , & fhss_configuration );
471
477
472
- if (fhss_configuration .fhss_bc_dwell_interval && fhss_configuration .fhss_broadcast_interval ) {
473
- // We have broadcast schedule set up set the broadcast parent schedule
474
- ns_fhss_ws_set_parent (cur -> ws_info -> fhss_api , neighbor_info -> neighbor -> mac64 , & neighbor_info -> ws_neighbor -> fhss_data .bc_timing_info );
475
- }
478
+ // We have broadcast schedule set up set the broadcast parent schedule
479
+ ns_fhss_ws_set_parent (cur -> ws_info -> fhss_api , neighbor_info -> neighbor -> mac64 , & neighbor_info -> ws_neighbor -> fhss_data .bc_timing_info );
476
480
477
481
// Update LLC to follow updated fhss settings
478
482
ws_bootstrap_llc_hopping_update (cur ,& fhss_configuration );
@@ -1840,7 +1844,7 @@ void ws_bootstrap_network_scan_process(protocol_interface_info_entry_t *cur)
1840
1844
return ;
1841
1845
}
1842
1846
1843
- ws_bootstrap_primary_parent_set (cur , & neighbor_info );
1847
+ // ws_bootstrap_primary_parent_set(cur, &neighbor_info);
1844
1848
ws_bootstrap_network_information_learn (cur );
1845
1849
ws_bootstrap_fhss_activate (cur );
1846
1850
ws_bootstrap_event_authentication_start (cur );
0 commit comments