From 6b5631373ab1402448411a2f0f7d9823999e156e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 4 Jan 2025 17:54:26 +0100 Subject: [PATCH] Update for better wifi channel calculation Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/mesh/wifi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/mesh/wifi.py b/pwnagotchi/mesh/wifi.py index 3610bd17..f079e764 100644 --- a/pwnagotchi/mesh/wifi.py +++ b/pwnagotchi/mesh/wifi.py @@ -1,3 +1,5 @@ +NumChannels: int = 233 + def freq_to_channel(freq: float) -> int: """ Convert a Wi-Fi frequency (in MHz) to its corresponding channel number.