feat(wifi): Pull in wpa_supplicant upstream code for SAE EXT key

SAE: Use wpa_key_mgmt_sae() helper

Use the existing helper function instead of maintaining multiple copies
of lists of SAE key management suites.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen
2023-10-09 08:40:41 +05:30
committed by Shreyas Sheth
parent b95ace06b8
commit 7dbfd8c6da

View File

@@ -1,5 +1,5 @@
/* /*
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
@@ -97,7 +97,8 @@ void wpa_supplicant_transition_disable(struct wpa_sm *sm, u8 bitmap)
{ {
wpa_printf(MSG_DEBUG, "TRANSITION_DISABLE %02x", bitmap); wpa_printf(MSG_DEBUG, "TRANSITION_DISABLE %02x", bitmap);
if (bitmap & TRANSITION_DISABLE_WPA3_PERSONAL) { if ((bitmap & TRANSITION_DISABLE_WPA3_PERSONAL) &&
wpa_key_mgmt_sae(sm->key_mgmt)) {
esp_wifi_sta_disable_wpa2_authmode_internal(); esp_wifi_sta_disable_wpa2_authmode_internal();
} }
} }