aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAndriy Tkachuk <andriy.tkachuk@inobject.com>2008-12-25 18:26:07 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-25 18:26:07 (GMT)
commita6f06dabb2f8e65593fc5e020777dc0776a0429e (patch)
treea1410ce49637dccb271c728355552806891b439f /wpa_supplicant
parentc674a55d711330d772283ece569b07421f8457b4 (diff)
downloadhostap-06-a6f06dabb2f8e65593fc5e020777dc0776a0429e.zip
hostap-06-a6f06dabb2f8e65593fc5e020777dc0776a0429e.tar.gz
hostap-06-a6f06dabb2f8e65593fc5e020777dc0776a0429e.tar.bz2
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).
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 9813a47..a5a7765 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++;