aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-04-12 15:13:22 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-14 16:43:30 (GMT)
commitb6317b417f5dfb16711ec1a7ab3600f77479fe20 (patch)
tree62d128043ddb759599c211cc3e470a3b5e4e6cbd /wpa_supplicant/ap.c
parent23d71a028695ac8a7b6be7971a294b06c1eaa4fa (diff)
downloadhostap-b6317b417f5dfb16711ec1a7ab3600f77479fe20.zip
hostap-b6317b417f5dfb16711ec1a7ab3600f77479fe20.tar.gz
hostap-b6317b417f5dfb16711ec1a7ab3600f77479fe20.tar.bz2
wpa_supplicant: Add wps_disabled parameter to network block
Add a new parameter wps_disabled to network block (wpa_ssid). This parameter allows WPS functionality to be disabled in AP mode. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 4ed0400..1ba2ab3 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -420,6 +420,8 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
!(bss->wpa & 2)))
goto no_wps; /* WPS2 does not allow WPA/TKIP-only
* configuration */
+ if (ssid->wps_disabled)
+ goto no_wps;
bss->eap_server = 1;
if (!ssid->ignore_broadcast_ssid)