WPS: Indicate WPS-FAIL event on EAPOL timeout-based failure callback

If the EAPOL processing times out (e.g., if the AP stops replying
to messages for some reason) during WPS negotiation, we need to
indicate WPS-FAIL event from eapol_cb since no other WPS failure is
reported for this particular case.
This commit is contained in:
Chao-Wen Yang 2011-01-13 18:04:33 +02:00 committed by Jouni Malinen
parent c5cf0a18f1
commit 449adbaca9

View file

@ -70,6 +70,8 @@ int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
}
eloop_cancel_timeout(wpas_wps_timeout, wpa_s, NULL);
if (wpa_s->key_mgmt == WPA_KEY_MGMT_WPS && !wpa_s->wps_success)
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_FAIL);
if (wpa_s->key_mgmt == WPA_KEY_MGMT_WPS && wpa_s->current_ssid &&
!(wpa_s->current_ssid->key_mgmt & WPA_KEY_MGMT_WPS)) {