[PATCH] AP: enable H2E on 6GHz when SAE is used

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

 



Even if the use of H2E isn't strictly mandatory when using SAE on 6Ghz, WPA3
personnal pushes it on 6GHz.
So lets automatically enable it by setting sae_pwe=2. This will allow both the
hunting-and-pecking and hash-to-element to work (and be backward compatible)

Signed-off-by: Nicolas Escande <nico.escande@xxxxxxxxx>
---
 src/ap/ap_config.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index be2e47122..a1aa4f2fb 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -1425,6 +1425,14 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
 	}
 #endif /* CONFIG_OCV */
 
+#ifdef CONFIG_SAE
+	if (full_config && is_6ghz_op_class(conf->op_class) &&
+	    (bss->wpa_key_mgmt & WPA_KEY_MGMT_SAE) && !bss->sae_pwe) {
+		wpa_printf(MSG_INFO, "Additionnaly enabling SAE H2E on 6 GHz");
+		bss->sae_pwe = 2;
+	}
+#endif
+
 #ifdef CONFIG_SAE_PK
 	if (full_config && hostapd_sae_pk_in_use(bss) &&
 	    hostapd_sae_pk_password_without_pk(bss)) {
-- 
2.38.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