Merge branch 'feature/pmf_support_for_softAP' into 'master'

esp_wifi: Add pmf support for softAP.

Closes WIFI-1353

See merge request espressif/esp-idf!14906
This commit is contained in:
Jiang Jiang Jian
2022-02-10 04:17:00 +00:00
10 changed files with 87 additions and 44 deletions
@@ -6,6 +6,8 @@ This example shows how to use the Wi-Fi SoftAP functionality of the Wi-Fi driver
## How to use example
SoftAP supports Protected Management Frames(PMF). Necessary configurations can be set using pmf flags. Please refer [Wifi-Security](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi-security.html) for more info.
### Configure the project
Open the project configuration menu (`idf.py menuconfig`).
@@ -66,7 +66,10 @@ void wifi_init_softap(void)
.channel = EXAMPLE_ESP_WIFI_CHANNEL,
.password = EXAMPLE_ESP_WIFI_PASS,
.max_connection = EXAMPLE_MAX_STA_CONN,
.authmode = WIFI_AUTH_WPA_WPA2_PSK
.authmode = WIFI_AUTH_WPA_WPA2_PSK,
.pmf_cfg = {
.required = false,
},
},
};
if (strlen(EXAMPLE_ESP_WIFI_PASS) == 0) {