]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant AP: Allow PMF to be enabled with ieee80211w
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 13 Mar 2014 16:00:08 +0000 (18:00 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 13 Mar 2014 16:22:25 +0000 (18:22 +0200)
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>
wpa_supplicant/ap.c

index af273037097609ffa875e895948db370be00b6f6..12cb4b6b2e93b28d73d80b205037ecca3a3fb53b 100644 (file)
@@ -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