From 748720a466cf4a7ce8b5c980e845a19f2e561a7a Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Fri, 15 May 2020 14:58:07 +0530 Subject: [PATCH] esp_wifi: Update WiFi lib Add and utilize WPA3/WPA2 Mixed mode Authtype --- components/esp_wifi/include/esp_wifi_types.h | 1 + components/esp_wifi/lib_esp32 | 2 +- examples/wifi/scan/main/scan.c | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index 8da6a21bd..d194265f1 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -57,6 +57,7 @@ typedef enum { WIFI_AUTH_WPA_WPA2_PSK, /**< authenticate mode : WPA_WPA2_PSK */ WIFI_AUTH_WPA2_ENTERPRISE, /**< authenticate mode : WPA2_ENTERPRISE */ WIFI_AUTH_WPA3_PSK, /**< authenticate mode : WPA3_PSK */ + WIFI_AUTH_WPA2_WPA3_PSK, /**< authenticate mode : WPA2_WPA3_PSK */ WIFI_AUTH_MAX } wifi_auth_mode_t; diff --git a/components/esp_wifi/lib_esp32 b/components/esp_wifi/lib_esp32 index f6981a38f..f95cd7c23 160000 --- a/components/esp_wifi/lib_esp32 +++ b/components/esp_wifi/lib_esp32 @@ -1 +1 @@ -Subproject commit f6981a38f6c2394fc27ae3985e73af0405893084 +Subproject commit f95cd7c239868c09a023eb36cf7fde3940e0ca22 diff --git a/examples/wifi/scan/main/scan.c b/examples/wifi/scan/main/scan.c index c766858e6..803debb8c 100644 --- a/examples/wifi/scan/main/scan.c +++ b/examples/wifi/scan/main/scan.c @@ -54,6 +54,12 @@ static void print_auth_mode(int authmode) case WIFI_AUTH_WPA2_ENTERPRISE: ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA2_ENTERPRISE"); break; + case WIFI_AUTH_WPA3_PSK: + ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA3_PSK"); + break; + case WIFI_AUTH_WPA2_WPA3_PSK: + ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_WPA2_WPA3_PSK"); + break; default: ESP_LOGI(TAG, "Authmode \tWIFI_AUTH_UNKNOWN"); break;