Skip to content

Commit fe06b87

Browse files
authored
Fix for setting web AP channel (#1388)
* Deleted wifi channel set without effect * When initializing wifi, use actual channel from settings instead of always using channel 1
1 parent 535d2d3 commit fe06b87

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

esp8266_deauther/esp8266_deauther.ino

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ void setup() {
125125
// create scan.json
126126
scan.setup();
127127

128-
// set channel
129-
setWifiChannel(settings::getWifiSettings().channel, true);
130-
131128
// dis/enable serial command interface
132129
if (settings::getCLISettings().enabled) {
133130
cli.enable();
@@ -196,4 +193,4 @@ void loop() {
196193
led::setMode(LED_MODE::IDLE);
197194
displayUI.mode = _mode;
198195
}
199-
}
196+
}

esp8266_deauther/wifi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ namespace wifi {
192192
setPath("/web");
193193
setSSID(settings::getAccessPointSettings().ssid);
194194
setPassword(settings::getAccessPointSettings().password);
195-
setChannel(1);
195+
setChannel(settings::getWifiSettings().channel);
196196
setHidden(settings::getAccessPointSettings().hidden);
197197
setCaptivePortal(settings::getWebSettings().captive_portal);
198198

@@ -462,4 +462,4 @@ namespace wifi {
462462
dns.processNextRequest();
463463
}
464464
}
465-
}
465+
}

0 commit comments

Comments
 (0)