[PATCH] AP: SAE on 6GHz requires H2E enabled in config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Nicolas Escande <nico.escande@xxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux