Skip to content

Commit ead1ade

Browse files
author
Mika Tervonen
committed
Start sending PAS message after EAPOL parent TX fails.
restarts the PAS trickle. Tries not to send PAS if there is potential parents available.
1 parent 8de473b commit ead1ade

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,6 +2506,12 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
25062506
ws_bootstrap_candidate_parent_free(cur, target_eui_64);
25072507
// Go back for network scanning
25082508
ws_bootstrap_state_change(cur, ER_ACTIVE_SCAN);
2509+
2510+
// Start PAS interval between imin - imax.
2511+
cur->ws_info->trickle_pas_running = true;
2512+
trickle_start(&cur->ws_info->trickle_pan_advertisement_solicit, &cur->ws_info->trickle_params_pan_discovery);
2513+
2514+
// Parent selection is made before imin/2 so if there is parent candidates solicit is not sent
25092515
cur->bootsrap_state_machine_cnt = randLIB_get_random_in_range(10, cur->ws_info->trickle_params_pan_discovery.Imin >> 1);
25102516
tr_info("Making parent selection in %u s", (cur->bootsrap_state_machine_cnt / 10));
25112517
} else {

0 commit comments

Comments
 (0)