Skip to content

Commit 561280b

Browse files
author
Juha Heiskanen
committed
Wi-sun Discovery update:
Enter Discovery state bootstrap remove old keys from PAE Controller Removed Unnecessary key remove at Config learn reach MAX solication TX state. Change-Id: I073aaabfdcd1b88ff980530cf03b4a3209b4686a
1 parent 5b153f4 commit 561280b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,8 @@ static void ws_bootstrap_pan_version_increment(protocol_interface_info_entry_t *
22292229
static void ws_bootstrap_start_discovery(protocol_interface_info_entry_t *cur)
22302230
{
22312231
tr_debug("router discovery start");
2232+
// Remove network keys from MAC
2233+
ws_pae_controller_nw_keys_remove(cur);
22322234
ws_bootstrap_state_change(cur, ER_ACTIVE_SCAN);
22332235
cur->nwk_nd_re_scan_count = 0;
22342236
cur->ws_info->configuration_learned = false;
@@ -2861,9 +2863,6 @@ void ws_bootstrap_trickle_timer(protocol_interface_info_entry_t *cur, uint16_t t
28612863
if (cur->ws_info->pas_requests >= PCS_MAX) {
28622864
// if MAX PCS sent restart discovery
28632865

2864-
// Remove network keys from MAC
2865-
ws_pae_controller_nw_keys_remove(cur);
2866-
28672866
// Trickle is reseted when entering to discovery from state 3
28682867
trickle_inconsistent_heard(&cur->ws_info->trickle_pan_advertisement_solicit, &cur->ws_info->trickle_params_pan_discovery);
28692868
ws_bootstrap_event_discovery_start(cur);

0 commit comments

Comments
 (0)