Longer auth_timeout for WPS key_mgmt
authorAndriy Tkachuk <andriy.tkachuk@inobject.com>
Thu, 25 Dec 2008 18:26:07 +0000 (20:26 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Dec 2008 18:26:07 +0000 (20:26 +0200)
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).

wpa_supplicant/wpa_supplicant.c

index 9813a47..a5a7765 100644 (file)
@@ -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++;