diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-10-18 18:44:35 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-18 18:44:35 +0300 |
commit | 54e9c5fc6976c4cd1fd4cccf2b7dadaad2c4e437 (patch) | |
tree | 3fafcad6bf53b1678540e2e2cad96a8712e76bb4 /src/eap_peer | |
parent | ed3eecd786cd4c18e442ecc5c743692689e38a6e (diff) | |
download | external_wpa_supplicant_8_ti-54e9c5fc6976c4cd1fd4cccf2b7dadaad2c4e437.zip external_wpa_supplicant_8_ti-54e9c5fc6976c4cd1fd4cccf2b7dadaad2c4e437.tar.gz external_wpa_supplicant_8_ti-54e9c5fc6976c4cd1fd4cccf2b7dadaad2c4e437.tar.bz2 |
EAP: Clear ClientTimeout back to default value in INITIALIZE
This fixes an issue where WPS run leaves a small ClientTimeout
value (2) configured and the next EAPOL authentication is started
with that small value even for Identity exchange. This can cause
problems when an EAPOL packet gets dropped immediately after
association and a retry of that packet is needed (which may take
more than two seconds).
Diffstat (limited to 'src/eap_peer')
-rw-r--r-- | src/eap_peer/eap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index 39513d6..17d3574 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -147,6 +147,7 @@ SM_STATE(EAP, INITIALIZE) sm->methodState = METHOD_NONE; sm->allowNotifications = TRUE; sm->decision = DECISION_FAIL; + sm->ClientTimeout = EAP_CLIENT_TIMEOUT_DEFAULT; eapol_set_int(sm, EAPOL_idleWhile, sm->ClientTimeout); eapol_set_bool(sm, EAPOL_eapSuccess, FALSE); eapol_set_bool(sm, EAPOL_eapFail, FALSE); |