Merge branch 'bugfix/fix_wps_with_sae_enabled_ap_v4.2' into 'release/v4.2'

esp_wifi: Fix WPS issue for WPA3+WPA2 mode(v4.2)

See merge request espressif/esp-idf!24158
This commit is contained in:
Jiang Jiang Jian 2023-06-16 11:34:55 +08:00
commit 985cca4afd

View File

@ -139,6 +139,7 @@ static u8 *wpa3_build_sae_msg(u8 *bssid, u32 sae_msg_type, u32 *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))