aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2016-04-30 09:52:36 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-05 18:09:08 (GMT)
commit03626e9157f6c4685f15c05ed439f4fdb0359bc8 (patch)
treead131d516f065046e9c496953265acbc6c1ecd40 /wpa_supplicant
parent22950049e40696ea1d578be54c217942be285b63 (diff)
downloadhostap-03626e9157f6c4685f15c05ed439f4fdb0359bc8.zip
hostap-03626e9157f6c4685f15c05ed439f4fdb0359bc8.tar.gz
hostap-03626e9157f6c4685f15c05ed439f4fdb0359bc8.tar.bz2
Skip connection attempt for non-RSN networks if PMF is set to required
Since ieee80211w=2 is an explicit configuration to wpa_supplicant, the connection attempt for such non-PMF (non-RSN) capable networks should be skipped. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index f9b9cd6..6139033 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -594,6 +594,14 @@ static int wpa_supplicant_ssid_bss_match(struct wpa_supplicant *wpa_s,
return 1;
}
+#ifdef CONFIG_IEEE80211W
+ if (wpas_get_ssid_pmf(wpa_s, ssid) == MGMT_FRAME_PROTECTION_REQUIRED) {
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ " skip - MFP Required but network not MFP Capable");
+ return 0;
+ }
+#endif /* CONFIG_IEEE80211W */
+
wpa_ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE);
while ((ssid->proto & WPA_PROTO_WPA) && wpa_ie) {
proto_match++;