From: Andriy Tkachuk Date: Thu, 25 Dec 2008 18:26:07 +0000 (+0200) Subject: Longer auth_timeout for WPS key_mgmt X-Git-Tag: hostap_0_6_7~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6f06dabb2f8e65593fc5e020777dc0776a0429e;p=thirdparty%2Fhostap.git Longer auth_timeout for WPS key_mgmt It seems that for WPS registration we should use the same authentication timeout as for ieee8021x, no? (See patch attached.) On slow platforms public keys computation may take around 4-5 seconds (we actually stuck on this issue). --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 9813a47a3..a5a7765a9 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -1498,7 +1498,8 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr, wpa_supplicant_req_auth_timeout( wpa_s, (wpa_key_mgmt_wpa_ieee8021x(wpa_s->key_mgmt) || - wpa_s->key_mgmt == WPA_KEY_MGMT_IEEE8021X_NO_WPA) ? + wpa_s->key_mgmt == WPA_KEY_MGMT_IEEE8021X_NO_WPA || + wpa_s->key_mgmt == WPA_KEY_MGMT_WPS) ? 70 : 10, 0); } wpa_s->eapol_received++;