Skip to content

Commit 01ab02d

Browse files
Fix ESPHost WiFi connect without a specified BSSID (#2007)
See #2001 (comment)
1 parent 7e73e0b commit 01ab02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/lwIP_ESPHost/src/lwIP_ESPHost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void ESPHostLwIP::setSSID(const char *ssid) {
5151
}
5252

5353
void ESPHostLwIP::setBSSID(const uint8_t *bssid) {
54-
if (bssid == nullptr) {
54+
if (bssid == nullptr || !(bssid[0] | bssid[1] | bssid[2] | bssid[3] | bssid[4] | bssid[5])) {
5555
ap.bssid[0] = 0;
5656
} else {
5757
snprintf((char *)ap.bssid, sizeof(ap.bssid), "%02x:%02x:%02x:%02x:%02x:%02x", bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], bssid[5]);

0 commit comments

Comments
 (0)