mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-01 13:28:35 +00:00
feat(esp_wifi): Add support for WPA3 transition disable and more updates
1. Add support for SAE-PK and WPA3-Enterprise transition disable 2. Add support to handle OWE transition disable indication from AP 3. refactor: Backport common changes in scan/connect path from90cc6158-90cc6158adds support for Network Introduction Protocol in DPP 4. Fix issue of supplicant using wrong parameters to configure bss - Ensure that wpa_supplicant's state machine registers the requirement for rsnxe before deciding to add rsnxe to a assoc request. Co-authored-by: default avatarjgujarathi <jash.gujarathi@espressif.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -93,12 +93,36 @@ int hostapd_send_eapol(const u8 *source, const u8 *sta_addr,
|
||||
|
||||
}
|
||||
|
||||
void wpa_supplicant_transition_disable(void *sm, u8 bitmap)
|
||||
static void disable_wpa_wpa2(void)
|
||||
{
|
||||
esp_wifi_sta_disable_wpa2_authmode_internal();
|
||||
}
|
||||
|
||||
void wpa_supplicant_transition_disable(struct wpa_sm *sm, u8 bitmap)
|
||||
{
|
||||
wpa_printf(MSG_DEBUG, "TRANSITION_DISABLE %02x", bitmap);
|
||||
|
||||
if (bitmap & TRANSITION_DISABLE_WPA3_PERSONAL) {
|
||||
esp_wifi_sta_disable_wpa2_authmode_internal();
|
||||
if ((bitmap & TRANSITION_DISABLE_WPA3_PERSONAL) &&
|
||||
wpa_key_mgmt_sae(sm->key_mgmt)) {
|
||||
disable_wpa_wpa2();
|
||||
}
|
||||
|
||||
if ((bitmap & TRANSITION_DISABLE_SAE_PK) &&
|
||||
wpa_key_mgmt_sae(sm->key_mgmt)) {
|
||||
wpa_printf(MSG_INFO,
|
||||
"SAE-PK: SAE authentication without PK disabled based on AP notification");
|
||||
disable_wpa_wpa2();
|
||||
esp_wifi_enable_sae_pk_only_mode_internal();
|
||||
}
|
||||
|
||||
if ((bitmap & TRANSITION_DISABLE_WPA3_ENTERPRISE) &&
|
||||
wpa_key_mgmt_wpa_ieee8021x(sm->key_mgmt)) {
|
||||
disable_wpa_wpa2();
|
||||
}
|
||||
|
||||
if ((bitmap & TRANSITION_DISABLE_ENHANCED_OPEN) &&
|
||||
wpa_key_mgmt_owe(sm->key_mgmt)) {
|
||||
esp_wifi_sta_disable_owe_trans_internal();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user