Closed
Description
Related area
WiFi
Hardware specification
ESP32/ESP8266
Is your feature request related to a problem?
One of the root of the performance issues related to the Wifi.
Describe the solution you'd like
In WiFiSTA.cpp the user "mlord" ( Mark Lord ) ( https://github.com/mlord ) discovered that the performance issues is related with incoherent with the normal setup initialization in the AUTHMODE.
if(password != NULL && password[0] != 0){
wifi_config->sta.threshold.authmode = WIFI_AUTH_WEP;
_wifi_strncpy((char*)wifi_config->sta.password, password, 64);
this is incoherent with the nowdays most used WPS2 PSK, and therefore it should be :
if(password != NULL && password[0] != 0){
wifi_config->sta.threshold.authmode = WIFI_AUTH_WPA2_PSK;
_wifi_strncpy((char*)wifi_config->sta.password, password, 64);
aside of that the current scan overdo it with Scanning all chaneles:
wifi_config->sta.scan_method = WIFI_ALL_CHANNEL_SCAN;
and it should be the fast scan:
wifi_config->sta.scan_method = WIFI_FAST_SCAN;
these changes drop significally the time for connection from 3 to 17 seconds on some setups down to almost instantly
( the problem discussed in here : #2501 (comment) )
Describe alternatives you've considered
No response
Additional context
No response