From: Jouni Malinen Date: Thu, 13 Mar 2014 16:00:08 +0000 (+0200) Subject: wpa_supplicant AP: Allow PMF to be enabled with ieee80211w X-Git-Tag: hostap_2_2~570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a1a538fa51c92e640a49ffc19a7f58434cf8fa7;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index af2730370..12cb4b6b2 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