aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-17 14:46:55 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-17 14:46:55 (GMT)
commit70d84f11febaefe0bbd3b24ecb88101b1789e37d (patch)
treecc472cbacbdbd7ad792acf35b6387c6a96e5c668 /wpa_supplicant/wps_supplicant.c
parentbb79dc720b3c439ad9748b235061850c63d07fec (diff)
downloadhostap-70d84f11febaefe0bbd3b24ecb88101b1789e37d.zip
hostap-70d84f11febaefe0bbd3b24ecb88101b1789e37d.tar.gz
hostap-70d84f11febaefe0bbd3b24ecb88101b1789e37d.tar.bz2
WPS: Add wps_ap_pin ctrl_iface command for wpa_supplicant AP mode
This can be used to control the AP PIN in wpa_supplicant AP mode in the same way as the identical command in hostapd ctrl_iface.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index e2adb60..7b5c9be 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -551,6 +551,10 @@ static void wpa_supplicant_wps_event(void *ctx, enum wps_event event,
wpa_supplicant_wps_event_success(wpa_s);
break;
case WPS_EV_PWD_AUTH_FAIL:
+#ifdef CONFIG_AP
+ if (wpa_s->ap_iface && data->pwd_auth_fail.enrollee)
+ wpa_supplicant_ap_pwd_auth_fail(wpa_s);
+#endif /* CONFIG_AP */
break;
case WPS_EV_PBC_OVERLAP:
break;