Skip to content

Commit e909172

Browse files
authored
[WiFiSTA] Remove duplicate setting of SSID and password. (espressif#6825)
Done by function call of `wifi_sta_config`.
1 parent 2db7ded commit e909172

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: libraries/WiFi/src/WiFiSTA.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ wl_status_t WiFiSTAClass::begin(const char* ssid, const char *passphrase, int32_
240240

241241
wifi_config_t conf;
242242
memset(&conf, 0, sizeof(wifi_config_t));
243-
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.ssid), ssid, 32);
244-
245-
if(passphrase) {
246-
_wifi_strncpy(reinterpret_cast<char*>(conf.sta.password), passphrase, 64);
247-
}
248243

249244
wifi_sta_config(&conf, ssid, passphrase, bssid, channel, _minSecurity, _scanMethod, _sortMethod);
250245

0 commit comments

Comments
 (0)