Utility function to find out next/previous Wi-Fi channel for a channel.
| channel |
current channel |
| direction |
whether going downward (0 or less) or upward (1 or more) |
| band |
frequency band for wireless ("a", "bg", "6GHz") |
|
the next channel in the specified direction or 0 |