From 8be4d4096000bc0d639c76c70d3629cd05d38f98 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 12 Dec 2024 10:35:27 +0100 Subject: [PATCH] Set low limit frequency for 2.4Ghz --- pwnagotchi/mesh/wifi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/mesh/wifi.py b/pwnagotchi/mesh/wifi.py index 3ef7669c..be5d329c 100644 --- a/pwnagotchi/mesh/wifi.py +++ b/pwnagotchi/mesh/wifi.py @@ -1,7 +1,7 @@ NumChannels = 233 def freq_to_channel(freq): - if freq <= 2472: # 2.4ghz wifi + if 2412 <= freq <= 2472: # 2.4ghz wifi return int(((freq - 2412) / 5) + 1) elif freq == 2484: # channel 14 special return int(14)