On Tue, 2012-07-24 at 17:35 +0200, Johannes Berg wrote: > - if (channel > 14) { > - rx_status->band = IEEE80211_BAND_5GHZ; > - rx_status->freq = ieee80211_ofdm_chan_to_freq( > - WF_CHAN_FACTOR_5_G/2, channel); > - > - } else { > - rx_status->band = IEEE80211_BAND_2GHZ; > - rx_status->freq = ieee80211_dsss_chan_to_freq(channel); > - } > + rx_status->band = > + channel > 14 ? IEEE80211_BAND_5GHZ : IEEE80211_BAND_2GHZ; In case somebody is wondering -- this was and remains an assumption due to the hardware in question, it isn't true in general that channel numbers > 14 are for 5 GHz channels and others are 2.4 GHz. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html