From d35bcf65b0cd67a4da92f36c0a9f1ae00174eafc Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Thu, 3 Jun 2021 20:03:59 +0800 Subject: [PATCH] example: set PMF capable to connect to PMF required APs --- examples/wifi/iperf/main/cmd_wifi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/wifi/iperf/main/cmd_wifi.c b/examples/wifi/iperf/main/cmd_wifi.c index 05ff92ceb3..523c3d1331 100644 --- a/examples/wifi/iperf/main/cmd_wifi.c +++ b/examples/wifi/iperf/main/cmd_wifi.c @@ -130,6 +130,7 @@ static bool wifi_cmd_sta_join(const char* ssid, const char* pass) int bits = xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, 0, 1, 0); wifi_config_t wifi_config = { 0 }; + wifi_config.sta.pmf_cfg.capable = true; strlcpy((char*) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); if (pass) {