Merge branch 'bugfix/drop_beacon_when_authmode_changed' into 'master'

fix(lib): drop beacon when authmode changed

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

View File

@ -1,10 +1,10 @@
gwen:
core: f459e31
net80211: c184e50
pp: 1ce698f
espnow: f459e31
wps: f459e31
wpa2: f459e31
core: 01c569d
net80211: 01c569d
pp: 01c569d
espnow: 01c569d
wps: 01c569d
wpa2: 01c569d
smartconfig: 2.8.2
phy: 1163.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -86,6 +86,15 @@ void wifi_init_sta(void)
.password = EXAMPLE_ESP_WIFI_PASS
},
};
/* 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((char *)wifi_config.sta.password)) {
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_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_ERROR_CHECK(esp_wifi_start() );