From f46518e42ef2413fec70c468bb096aa8f5f3c664 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Mon, 5 Jun 2023 10:50:53 +0530 Subject: [PATCH] esp_wifi: Fix WPS issue for WPA3+WPA2 mode --- components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c b/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c index ed82f48e4f..9063ba4740 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c @@ -150,6 +150,7 @@ static u8 *wpa3_build_sae_msg(u8 *bssid, u32 sae_msg_type, size_t *sae_msg_len) case SAE_MSG_COMMIT: /* Do not go for SAE when WPS is ongoing */ if (esp_wifi_get_wps_status_internal() != WPS_STATUS_DISABLE) { + *sae_msg_len = 0; return NULL; } if (ESP_OK != wpa3_build_sae_commit(bssid, sae_msg_len))