Skip to content

Commit

Permalink
WS: Learn channel function from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Mar 28, 2018
1 parent 3980870 commit 7fa2c2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Expand Up @@ -489,6 +489,9 @@ static void ws_bootstrap_pan_config_analyse(struct protocol_interface_info_entry
cur->ws_info->hopping_schdule.fhss_bsi = ws_bs_ie.broadcast_schedule_identifier;
cur->ws_info->hopping_schdule.fhss_bc_dwell_interval = ws_bs_ie.dwell_interval;

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


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

0 comments on commit 7fa2c2b

Please sign in to comment.