Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libraries/WiFi/src/STA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ bool STAClass::connect(const char *ssid, const char *passphrase, int32_t channel
conf.sta.bssid_set = 1;
memcpy(conf.sta.bssid, bssid, 6);
}
else {
conf.sta.bssid_set = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already done by the memset above

}
}

esp_err_t err = esp_wifi_set_config(WIFI_IF_STA, &conf);
Expand Down