aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorMathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>2018-08-06 19:46:25 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-16 18:31:21 (GMT)
commitce6829c284a316d5b7b610e83865af69b8ccfcf3 (patch)
tree53b932ccb1fae2731c31e79a1f319c813a2d7c52 /wpa_supplicant/config_file.c
parent9c55fdb02397ff03797067314a2fb8814ac36fa7 (diff)
downloadhostap-ce6829c284a316d5b7b610e83865af69b8ccfcf3.zip
hostap-ce6829c284a316d5b7b610e83865af69b8ccfcf3.tar.gz
hostap-ce6829c284a316d5b7b610e83865af69b8ccfcf3.tar.bz2
OCV: Add wpa_supplicant config parameter
Add wpa_supplicant network profile parameter ocv to disable or enable Operating Channel Verification (OCV) support. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 09115e1..8bc7a35 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -160,6 +160,15 @@ static int wpa_config_validate_network(struct wpa_ssid *ssid, int line)
errors++;
}
+#ifdef CONFIG_OCV
+ if (ssid->ocv && ssid->ieee80211w == NO_MGMT_FRAME_PROTECTION) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: PMF needs to be enabled whenever using OCV",
+ line);
+ errors++;
+ }
+#endif /* CONFIG_OCV */
+
return errors;
}