@@ -2700,9 +2700,13 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
2700
2700
if (result == AUTH_RESULT_OK ) {
2701
2701
tr_debug ("authentication success" );
2702
2702
ws_bootstrap_event_configuration_start (cur );
2703
- } else if ( result == AUTH_RESULT_ERR_TX_NO_ACK ) {
2703
+ } else {
2704
2704
// eapol parent selected is not working
2705
- tr_debug ("authentication TX failed" );
2705
+ if (result == AUTH_RESULT_ERR_TX_NO_ACK ) {
2706
+ tr_debug ("authentication TX failed" );
2707
+ } else {
2708
+ tr_debug ("authentication failed" );
2709
+ }
2706
2710
2707
2711
ws_bootstrap_candidate_parent_free (cur , target_eui_64 );
2708
2712
// Go back for network scanning
@@ -2715,12 +2719,6 @@ static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_
2715
2719
// Parent selection is made before imin/2 so if there is parent candidates solicit is not sent
2716
2720
cur -> bootsrap_state_machine_cnt = randLIB_get_random_in_range (10 , cur -> ws_info -> trickle_params_pan_discovery .Imin >> 1 );
2717
2721
tr_info ("Making parent selection in %u s" , (cur -> bootsrap_state_machine_cnt / 10 ));
2718
- } else {
2719
- tr_debug ("authentication failed" );
2720
- // What else to do to start over again...
2721
- // Trickle is reseted when entering to discovery from state 2
2722
- trickle_inconsistent_heard (& cur -> ws_info -> trickle_pan_advertisement_solicit , & cur -> ws_info -> trickle_params_pan_discovery );
2723
- ws_bootstrap_event_discovery_start (cur );
2724
2722
}
2725
2723
}
2726
2724
0 commit comments