From 9795558c0329ee3d956c082bd7a42f6a6eb91a48 Mon Sep 17 00:00:00 2001 From: "wangtao@espressif.com" Date: Fri, 10 Jan 2025 16:05:28 +0800 Subject: [PATCH] fix(wifi): fix build issue when disable wpa3 sae --- components/wpa_supplicant/esp_supplicant/src/esp_hostap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c b/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c index 813a96a288..f6c6ebb6a2 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c @@ -169,7 +169,10 @@ void *hostap_init(void) wpa_printf(MSG_DEBUG, "overriding transition_disable config with 0 as authmode is not WPA3"); } +#ifdef CONFIG_SAE auth_conf->sae_require_mfp = 1; +#endif /* CONFIG_SAE */ + //TODO change it when AP support GCMP-PSK auth_conf->group_mgmt_cipher = WPA_CIPHER_AES_128_CMAC;