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" or "bg") |
the next channel in the specified direction or 0 |