diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c b/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c index 8835950c90..7fcafba72e 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c @@ -213,6 +213,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)) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c index 98c7efe821..b3aa227a07 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c @@ -798,6 +798,7 @@ int wps_finish(void) os_memcpy(config->sta.password, sm->key[0], sm->key_len[0]); os_memcpy(config->sta.bssid, sm->bssid, ETH_ALEN); config->sta.bssid_set = 0; + config->sta.sae_pwe_h2e = 0; esp_wifi_set_config(WIFI_IF_STA, config); os_free(config);