Search Linux Wireless

Re: [PATCH] brcmsmac: use ieee80211_channel_to_frequency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux