mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Allow duplicate names but different channel in wifi scan
Allow duplicate names but different channel in wifi scan
This commit is contained in:
parent
a6dcf46771
commit
d0774995de
@ -1675,8 +1675,9 @@ void HandleWifiConfiguration(void)
|
||||
for (uint32_t i = 0; i < n; i++) {
|
||||
if (-1 == indices[i]) { continue; }
|
||||
cssid = WiFi.SSID(indices[i]);
|
||||
uint32_t cschn = WiFi.channel(indices[i]);
|
||||
for (uint32_t j = i + 1; j < n; j++) {
|
||||
if (cssid == WiFi.SSID(indices[j])) {
|
||||
if ((cssid == WiFi.SSID(indices[j])) && (cschn == WiFi.channel(indices[j]))) {
|
||||
DEBUG_CORE_LOG(PSTR(D_LOG_WIFI D_DUPLICATE_ACCESSPOINT " %s"), WiFi.SSID(indices[j]).c_str());
|
||||
indices[j] = -1; // set dup aps to index -1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user