Unverified Commit e9091728 authored by Rotzbua's avatar Rotzbua Committed by GitHub

[WiFiSTA] Remove duplicate setting of SSID and password. (#6825)

Done by function call of `wifi_sta_config`.
parent 2db7ded9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment