[WiFiSTA] Remove duplicate setting of SSID and password. (#6825)
Done by function call of `wifi_sta_config`.
This commit is contained in:
parent
2db7ded9a2
commit
e909172843
1 changed files with 0 additions and 5 deletions
|
|
@ -240,11 +240,6 @@ wl_status_t WiFiSTAClass::begin(const char* ssid, const char *passphrase, int32_
|
|||
|
||||
wifi_config_t conf;
|
||||
memset(&conf, 0, sizeof(wifi_config_t));
|
||||
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.ssid), ssid, 32);
|
||||
|
||||
if(passphrase) {
|
||||
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.password), passphrase, 64);
|
||||
}
|
||||
|
||||
wifi_sta_config(&conf, ssid, passphrase, bssid, channel, _minSecurity, _scanMethod, _sortMethod);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue