aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorChao-Wen Yang <Chao-Wen.Yang@Atheros.com>2011-01-13 16:04:33 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-13 16:04:33 (GMT)
commit449adbaca9eaa36acb07d590ebeb0240bf86b423 (patch)
tree6a9dc86d8eac7e4b2a84ba710556320caad8a73f /wpa_supplicant/wps_supplicant.c
parentc5cf0a18f1ac9caac20966f17be20c6e0892daa1 (diff)
downloadhostap-449adbaca9eaa36acb07d590ebeb0240bf86b423.zip
hostap-449adbaca9eaa36acb07d590ebeb0240bf86b423.tar.gz
hostap-449adbaca9eaa36acb07d590ebeb0240bf86b423.tar.bz2
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.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 04761b4..d93db46 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -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)) {