[PATCH] AP: SAE on 6GHz requires H2E enabled in config
Nicolas Escande
nico.escande at gmail.com
Thu Apr 7 04:49:43 PDT 2022
Signed-off-by: Nicolas Escande <nico.escande at gmail.com>
---
src/ap/ap_config.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 051b843e9..d2b8dd244 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -1187,6 +1187,13 @@ static bool hostapd_config_check_bss_6g(struct hostapd_bss_config *bss)
return false;
}
+#ifdef CONFIG_SAE
+ if ((bss->wpa_key_mgmt & WPA_KEY_MGMT_SAE) && !bss->sae_pwe) {
+ wpa_printf(MSG_ERROR, "SAE with H2E is mandatory on 6 GHz");
+ return false;
+ }
+#endif
+
if (bss->rsn_pairwise & (WPA_CIPHER_WEP40 |
WPA_CIPHER_WEP104 |
WPA_CIPHER_TKIP)) {
--
2.35.1
More information about the Hostap
mailing list