Skip to content

Commit 7fa2c2b

Browse files
author
Jarkko Paso
committed
WS: Learn channel function from parent
1 parent 3980870 commit 7fa2c2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@ static void ws_bootstrap_pan_config_analyse(struct protocol_interface_info_entry
489489
cur->ws_info->hopping_schdule.fhss_bsi = ws_bs_ie.broadcast_schedule_identifier;
490490
cur->ws_info->hopping_schdule.fhss_bc_dwell_interval = ws_bs_ie.dwell_interval;
491491

492+
cur->ws_info->hopping_schdule.channel_function = ws_bs_ie.channel_function;
493+
// TODO: Restart unicast schedule if configuration changed, start broadcast schedule (FHSS)
494+
492495

493496
if (!cur->ws_info->configuration_learned) {
494497
// Generate own hopping schedules Follow first parent broadcast and plans and also use same unicast dwell
@@ -1042,6 +1045,7 @@ static void ws_bootstrap_event_handler(arm_event_s *event)
10421045
cur->ws_info->pan_configuration.rpl_routing_method = true;
10431046
cur->ws_info->pan_configuration.use_parent_bs = true;
10441047
cur->ws_info->pan_configuration.version = WS_FAN_VERSION_1_0;
1048+
cur->ws_info->hopping_schdule.channel_function = WS_FIXED_CHANNEL;
10451049
ws_llc_set_gtkhash(cur, cur->ws_info->gtkhash);
10461050
ws_bootstrap_fhss_activate(cur);
10471051
ws_bootstrap_event_operation_start(cur);

0 commit comments

Comments
 (0)