Skip to content

Commit ab6f8ed

Browse files
authored
[fnWifi] fixes #1010 force channel bitmap to scan all wifi channels. (#1011)
1 parent 91e73e1 commit ab6f8ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/hardware/fnWiFi.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ uint8_t WiFiManager::scan_networks(uint8_t maxresults)
315315
scan_conf.scan_type = WIFI_SCAN_TYPE_ACTIVE;
316316
scan_conf.scan_time.active.min = 100; // ms; 100 is what Arduino-ESP uses
317317
scan_conf.scan_time.active.max = 300; // ms; 300 is what Arduino-ESP uses
318-
318+
scan_conf.channel_bitmap.ghz_2_channels = 0xFFFF; // all channels
319+
scan_conf.channel_bitmap.ghz_5_channels = 0xFFFFFFFF; // all channels
320+
319321
bool temporary_disconnect = false;
320322
uint16_t result = 0;
321323
uint8_t final_count = 0;

0 commit comments

Comments
 (0)