From 26fbedd52d6a04af114e9980fbef77db01d3a28a Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 12 Dec 2024 10:20:57 +0100 Subject: [PATCH] Added 6Ghz Wi-Fi channels, in case you use an external dongle that can. --- pwnagotchi/mesh/wifi.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pwnagotchi/mesh/wifi.py b/pwnagotchi/mesh/wifi.py index aa2a1da1..3ef7669c 100644 --- a/pwnagotchi/mesh/wifi.py +++ b/pwnagotchi/mesh/wifi.py @@ -1,12 +1,13 @@ -NumChannels = 177 - +NumChannels = 233 def freq_to_channel(freq): - if freq <= 2472: + if freq <= 2472: # 2.4ghz wifi return int(((freq - 2412) / 5) + 1) - elif freq == 2484: + elif freq == 2484: # channel 14 special return int(14) - elif 5035 <= freq <= 5865: - return int(((freq - 5035) / 5) + 7) + elif 5150 <= freq <= 5895: # 5ghz wifi + return int(((freq - 5180) / 5) + 36) + elif 5925 <= freq <= 7115: # 6ghz wifi + return int(((freq - 5950) / 5) + 11) else: return 0