Skip to content

Commit 30f4315

Browse files
author
Juha Heiskanen
committed
Wi-SUN discovery staten enter upxdate
Call MAC full reset and clean LLC and adaptatio layer tx queue's FHSS unsynch clear BC shedule information fix.
1 parent 083b84e commit 30f4315

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,9 @@ static void ws_bootstrap_event_handler(arm_event_s *event)
32283228
case WS_DISCOVERY_START:
32293229
tr_info("Discovery start");
32303230

3231+
protocol_mac_reset(cur);
3232+
ws_llc_reset(cur);
3233+
lowpan_adaptation_interface_reset(cur->id);
32313234
//Clear Pending Key Index State
32323235
cur->ws_info->pending_key_index_info.state = NO_PENDING_PROCESS;
32333236
cur->mac_parameters->mac_default_key_index = 0;

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ static int16_t fhss_ws_synch_state_set_callback(const fhss_api_t *api, fhss_stat
542542
fhss_stop_timer(fhss_structure, fhss_unicast_handler);
543543
fhss_stop_timer(fhss_structure, fhss_broadcast_handler);
544544
fhss_structure->ws->broadcast_timer_running = false;
545+
fhss_structure->ws->is_on_bc_channel = false;
546+
fhss_structure->ws->synchronization_time = 0;
545547
}
546548

547549
fhss_structure->fhss_state = fhss_state;

0 commit comments

Comments
 (0)