example: set PMF capable to connect to PMF required APs

This commit is contained in:
He Yin Ling 2021-06-03 20:03:59 +08:00 committed by chenjianxing
parent 36c2ef2828
commit 96a00e59f4

View File

@ -148,6 +148,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) {