Set low limit frequency for 2.4Ghz

This commit is contained in:
Jeroen Oudshoorn
2024-12-12 10:35:27 +01:00
parent 26fbedd52d
commit 8be4d40960

View File

@ -1,7 +1,7 @@
NumChannels = 233 NumChannels = 233
def freq_to_channel(freq): def freq_to_channel(freq):
if freq <= 2472: # 2.4ghz wifi if 2412 <= freq <= 2472: # 2.4ghz wifi
return int(((freq - 2412) / 5) + 1) return int(((freq - 2412) / 5) + 1)
elif freq == 2484: # channel 14 special elif freq == 2484: # channel 14 special
return int(14) return int(14)