From 08db2390e597e8030f80e2cd783f9453d58573c0 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 0f6239cfa0..42e42c99ce 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_hostap.c @@ -168,7 +168,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;