Skip to content

Commit da3362e

Browse files
committed
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
2 parents 0ad7af2 + e2c2c2b commit da3362e

File tree

14 files changed

+15
-6
lines changed

14 files changed

+15
-6
lines changed

components/esp8266/lib/VERSION

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
gwen:
2-
core: f459e31
3-
net80211: c184e50
4-
pp: 1ce698f
5-
espnow: f459e31
6-
wps: f459e31
7-
wpa2: f459e31
2+
core: 01c569d
3+
net80211: 01c569d
4+
pp: 01c569d
5+
espnow: 01c569d
6+
wps: 01c569d
7+
wpa2: 01c569d
88

99
smartconfig: 2.8.2
1010
phy: 1163.0

components/esp8266/lib/libcore.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libcore_dbg.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libespnow.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

components/esp8266/lib/libnet80211.a

2.07 KB
Binary file not shown.
2.01 KB
Binary file not shown.

components/esp8266/lib/libpp.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libpp_dbg.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libwpa2.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libwpa2_dbg.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libwps.a

0 Bytes
Binary file not shown.

components/esp8266/lib/libwps_dbg.a

0 Bytes
Binary file not shown.

examples/wifi/getting_started/station/main/station_example_main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ void wifi_init_sta(void)
8686
.password = EXAMPLE_ESP_WIFI_PASS
8787
},
8888
};
89+
90+
/* Setting a password implies station will connect to all security modes including WEP/WPA.
91+
* However these modes are deprecated and not advisable to be used. Incase your Access point
92+
* doesn't support WPA2, these mode can be enabled by commenting below line */
93+
94+
if (strlen((char *)wifi_config.sta.password)) {
95+
wifi_config.sta.threshold.authmode = WIFI_AUTH_WPA2_PSK;
96+
}
97+
8998
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
9099
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
91100
ESP_ERROR_CHECK(esp_wifi_start() );

0 commit comments

Comments
 (0)