From 5e33a351f1191940dcd33072c39bc569cb7ded11 Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Mon, 4 May 2020 11:31:54 +0530 Subject: [PATCH] esp_wifi: Enable WPA3 & PMF by default --- components/esp_wifi/Kconfig | 2 +- .../getting_started/station/main/station_example_main.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/esp_wifi/Kconfig b/components/esp_wifi/Kconfig index 0dd122d61..47b548f21 100644 --- a/components/esp_wifi/Kconfig +++ b/components/esp_wifi/Kconfig @@ -297,7 +297,7 @@ menu "Wi-Fi" config ESP32_WIFI_ENABLE_WPA3_SAE bool "Enable WPA3-Personal" - default n + default y help Select this option to allow the device to establish a WPA3-Personal connection with eligible AP's. PMF (Protected Management Frames) is a prerequisite feature for a WPA3 connection, it needs to be diff --git a/examples/wifi/getting_started/station/main/station_example_main.c b/examples/wifi/getting_started/station/main/station_example_main.c index 29ba42fc2..144acc5b9 100644 --- a/examples/wifi/getting_started/station/main/station_example_main.c +++ b/examples/wifi/getting_started/station/main/station_example_main.c @@ -81,7 +81,11 @@ void wifi_init_sta() wifi_config_t wifi_config = { .sta = { .ssid = EXAMPLE_ESP_WIFI_SSID, - .password = EXAMPLE_ESP_WIFI_PASS + .password = EXAMPLE_ESP_WIFI_PASS, + .pmf_cfg = { + .capable = true, + .required = false + }, }, }; ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );