Update for better wifi channel calculation

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2025-01-04 17:54:26 +01:00
parent de5cd8705f
commit 6b5631373a

View File

@ -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.