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).
This commit is contained in:
Andriy Tkachuk 2008-12-25 20:26:07 +02:00 committed by Jouni Malinen
parent c674a55d71
commit a6f06dabb2

View 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++;