Utility function to translate a Wi-Fi channel to its corresponding frequency.
| channel |
channel |
| band |
frequency band for wireless ("a", "bg", "6GHz") |
|
the frequency represented by the channel of the band, or -1 when the freq is invalid, or 0 when the band is invalid |