aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-03-13 16:00:08 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-13 16:22:25 (GMT)
commit9a1a538fa51c92e640a49ffc19a7f58434cf8fa7 (patch)
tree0896492746c9473363060fccc68e40fa0ebd669f /wpa_supplicant/ap.c
parentce6b9cd482e837c9b9019302a7a50c0fc4653843 (diff)
downloadhostap-9a1a538fa51c92e640a49ffc19a7f58434cf8fa7.zip
hostap-9a1a538fa51c92e640a49ffc19a7f58434cf8fa7.tar.gz
hostap-9a1a538fa51c92e640a49ffc19a7f58434cf8fa7.tar.bz2
wpa_supplicant AP: Allow PMF to be enabled with ieee80211w
The ieee80211w parameter was not previously copied to the hostapd BSS structure from wpa_supplicant configuration, so PMF was practically disabled. Allow it to be configured through the wpa_supplicant network configuration block. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index af27303..12cb4b6 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -297,6 +297,11 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
bss->wpa_group_rekey = 86400;
}
+#ifdef CONFIG_IEEE80211W
+ if (ssid->ieee80211w != MGMT_FRAME_PROTECTION_DEFAULT)
+ bss->ieee80211w = ssid->ieee80211w;
+#endif /* CONFIG_IEEE80211W */
+
#ifdef CONFIG_WPS
/*
* Enable WPS by default for open and WPA/WPA2-Personal network, but