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)