Merge branch 'bugfix/drop_beacon_when_authmode_changed_v3.2' into 'release/v3.2'

fix(lib): drop beacon when authmode changed(backport v3.2)

See merge request sdk/ESP8266_RTOS_SDK!1465
This commit is contained in:
Dong Heng
2020-07-08 15:51:17 +08:00
14 changed files with 14 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
gwen: gwen:
core: 8ce4f42 core: bf26f66
net80211: 64d0ece net80211: bf26f66
pp: 8ce4f42 pp: bf26f66
wpa: 64d0ece wpa: bf26f66
espnow: 8ce4f42 espnow: bf26f66
wps: 8ce4f42 wps: bf26f66
smartconfig: 2.8.1 smartconfig: 2.8.1
phy: 1058.15 phy: 1058.15

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -122,6 +122,14 @@ void wifi_init_sta()
}, },
}; };
/* Setting a password implies station will connect to all security modes including WEP/WPA.
* However these modes are deprecated and not advisable to be used. Incase your Access point
* doesn't support WPA2, these mode can be enabled by commenting below line */
if (strlen(EXAMPLE_ESP_WIFI_PASS)) {
wifi_config.sta.threshold.authmode = WIFI_AUTH_WPA2_PSK;
}
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) ); ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) ); ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_ERROR_CHECK(esp_wifi_start() ); ESP_ERROR_CHECK(esp_wifi_start() );