mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-27 08:21:02 +02:00
fix(wifi): Add support to recongize different WPA3 Authentication modes from specs
Add support to recognize APs supporting 'WPA3-Enterprise-Only Mode' and 'WPA3-Enterprise-Transition Mode' using authmodes WIFI_AUTH_WPA3_ENTERPRISE and WIFI_AUTH_WPA2_WPA3_ENTERPRISE, respectively.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -55,8 +55,12 @@ typedef struct {
|
|||||||
wifi_country_policy_t policy; /**< country policy */
|
wifi_country_policy_t policy; /**< country policy */
|
||||||
} wifi_country_t;
|
} wifi_country_t;
|
||||||
|
|
||||||
/* Strength of authmodes */
|
/**
|
||||||
/* OPEN < WEP < WPA_PSK < OWE < WPA2_PSK = WPA_WPA2_PSK < WAPI_PSK < WPA3_PSK = WPA2_WPA3_PSK */
|
* @brief Wi-Fi authmode type
|
||||||
|
* Strength of authmodes
|
||||||
|
* Personal Networks : OPEN < WEP < WPA_PSK < OWE < WPA2_PSK = WPA_WPA2_PSK < WAPI_PSK < WPA3_PSK = WPA2_WPA3_PSK
|
||||||
|
* Enterprise Networks : WIFI_AUTH_WPA2_ENTERPRISE < WIFI_AUTH_WPA3_ENTERPRISE = WIFI_AUTH_WPA2_WPA3_ENTERPRISE < WIFI_AUTH_WPA3_ENT_192
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
WIFI_AUTH_OPEN = 0, /**< authenticate mode : open */
|
WIFI_AUTH_OPEN = 0, /**< authenticate mode : open */
|
||||||
WIFI_AUTH_WEP, /**< authenticate mode : WEP */
|
WIFI_AUTH_WEP, /**< authenticate mode : WEP */
|
||||||
@@ -70,6 +74,8 @@ typedef enum {
|
|||||||
WIFI_AUTH_WAPI_PSK, /**< authenticate mode : WAPI_PSK */
|
WIFI_AUTH_WAPI_PSK, /**< authenticate mode : WAPI_PSK */
|
||||||
WIFI_AUTH_OWE, /**< authenticate mode : OWE */
|
WIFI_AUTH_OWE, /**< authenticate mode : OWE */
|
||||||
WIFI_AUTH_WPA3_ENT_192, /**< authenticate mode : WPA3_ENT_SUITE_B_192_BIT */
|
WIFI_AUTH_WPA3_ENT_192, /**< authenticate mode : WPA3_ENT_SUITE_B_192_BIT */
|
||||||
|
WIFI_AUTH_WPA3_ENTERPRISE, /**< authenticate mode : WPA3-Enterprise Only Mode */
|
||||||
|
WIFI_AUTH_WPA2_WPA3_ENTERPRISE, /**< authenticate mode : WPA3-Enterprise Transition Mode */
|
||||||
WIFI_AUTH_MAX
|
WIFI_AUTH_MAX
|
||||||
} wifi_auth_mode_t;
|
} wifi_auth_mode_t;
|
||||||
|
|
||||||
|
Submodule components/esp_wifi/lib updated: dc51a52686...b4bf075b15
@@ -52,6 +52,12 @@ static void print_auth_mode(int authmode)
|
|||||||
case WIFI_AUTH_WPA2_WPA3_PSK:
|
case WIFI_AUTH_WPA2_WPA3_PSK:
|
||||||
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA2_WPA3_PSK");
|
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA2_WPA3_PSK");
|
||||||
break;
|
break;
|
||||||
|
case WIFI_AUTH_WPA3_ENTERPRISE:
|
||||||
|
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA3_ENTERPRISE");
|
||||||
|
break;
|
||||||
|
case WIFI_AUTH_WPA2_WPA3_ENTERPRISE:
|
||||||
|
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA2_WPA3_ENTERPRISE");
|
||||||
|
break;
|
||||||
case WIFI_AUTH_WPA3_ENT_192:
|
case WIFI_AUTH_WPA3_ENT_192:
|
||||||
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA3_ENT_192");
|
ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA3_ENT_192");
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user