pub fn get_band_cap_for_channel( bands: &[BandCapability], channel: Channel, ) -> Result<&BandCapability, Error>