Skip to content

Commit

Permalink
Support for ch177
Browse files Browse the repository at this point in the history
  • Loading branch information
syylari committed May 20, 2021
1 parent daf2f94 commit 9404620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network/wifi.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ func Dot11Freq2Chan(freq int) int {
return 14
} else if freq >= 5035 && freq <= 5865 {
return ((freq - 5035) / 5) + 7
} else if freq >= 5875 && freq <= 5895 {
return 177
}
return 0
}
Expand All @@ -34,6 +36,8 @@ func Dot11Chan2Freq(channel int) int {
return 2484
} else if channel <= 173 {
return ((channel - 7) * 5) + 5035
} else if channel == 177 {
return 5885
}

return 0
Expand Down

0 comments on commit 9404620

Please sign in to comment.