esp_wifi: Enable WPA3 & PMF by default
In wifi station example, set PMF(Protected Management Frames) configuration to capable. Set WPA3 Feature in menuconfig enabled by default. This will allow device to establish more secured connection with AP's that support these protocols.
This commit is contained in:
parent
f7a2bfc873
commit
e006d21419
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -81,7 +81,11 @@ void wifi_init_sta(void)
|
|||
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) );
|
||||
|
|
Loading…
Reference in a new issue