mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Added 6Ghz Wi-Fi channels, in case you use an external dongle that can.
This commit is contained in:
@ -1,12 +1,13 @@
|
|||||||
NumChannels = 177
|
NumChannels = 233
|
||||||
|
|
||||||
|
|
||||||
def freq_to_channel(freq):
|
def freq_to_channel(freq):
|
||||||
if freq <= 2472:
|
if freq <= 2472: # 2.4ghz wifi
|
||||||
return int(((freq - 2412) / 5) + 1)
|
return int(((freq - 2412) / 5) + 1)
|
||||||
elif freq == 2484:
|
elif freq == 2484: # channel 14 special
|
||||||
return int(14)
|
return int(14)
|
||||||
elif 5035 <= freq <= 5865:
|
elif 5150 <= freq <= 5895: # 5ghz wifi
|
||||||
return int(((freq - 5035) / 5) + 7)
|
return int(((freq - 5180) / 5) + 36)
|
||||||
|
elif 5925 <= freq <= 7115: # 6ghz wifi
|
||||||
|
return int(((freq - 5950) / 5) + 11)
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user