[PATCH] Mesh mode: Add check to the disable open mode key in 6GHz.
sharadanandk at gmail.com
sharadanandk at gmail.com
Tue Apr 5 06:51:18 PDT 2022
From: Sharadanand Karanjkar <skaranjkar at datto.com>
Signed-off-by: Sharadanand Karanjkar <skaranjkar at datto.com>
---
wpa_supplicant/config_file.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 2335c52..756cbe4 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -56,6 +56,13 @@ static int wpa_config_validate_network(struct wpa_ssid *ssid, int line)
ssid->group_cipher &= ~WPA_CIPHER_CCMP;
}
+ if (is_6ghz_freq(ssid->frequency) && ssid->mode == WPAS_MODE_MESH &&
+ ssid->key_mgmt == WPA_KEY_MGMT_NONE) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: key_mgmt for mesh network in 6GHz should be SAE",
+ line);
+ errors++;
+ }
if (ssid->mode == WPAS_MODE_MESH &&
(ssid->key_mgmt != WPA_KEY_MGMT_NONE &&
ssid->key_mgmt != WPA_KEY_MGMT_SAE)) {
--
2.30.2
More information about the Hostap
mailing list