diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-09-03 02:38:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-08 16:31:05 -0400 |
commit | 8813262ea79acf9daa0e03901bdfe93db4dc4ca5 (patch) | |
tree | 0b5efbbcb7f6f2395807b0d5987cca028203f217 /drivers/net/wireless/ath | |
parent | 7ea310be65bfcbc6e2395844fd3498762dc2aea6 (diff) |
ath9k: Fix channelFlags for 2GHZ
CHANNEL_G has to be set for 2GHZ channels since
IS_CHAN_G() checks for this in channelFlags and not in
chanmode. To make things messier, ath9k_hw_process_ini()
checks for CHANNEL_G in chanmode and not in channelFlags.
The supreme, brain-searing fix is to set the
flag in both cases.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index b1d189c6be8a..a69fda8a9102 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1879,7 +1879,7 @@ void ath9k_update_ichannel(struct ath_softc *sc, struct ieee80211_hw *hw, | |||
1879 | 1879 | ||
1880 | if (chan->band == IEEE80211_BAND_2GHZ) { | 1880 | if (chan->band == IEEE80211_BAND_2GHZ) { |
1881 | ichan->chanmode = CHANNEL_G; | 1881 | ichan->chanmode = CHANNEL_G; |
1882 | ichan->channelFlags = CHANNEL_2GHZ | CHANNEL_OFDM; | 1882 | ichan->channelFlags = CHANNEL_2GHZ | CHANNEL_OFDM | CHANNEL_G; |
1883 | } else { | 1883 | } else { |
1884 | ichan->chanmode = CHANNEL_A; | 1884 | ichan->chanmode = CHANNEL_A; |
1885 | ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM; | 1885 | ichan->channelFlags = CHANNEL_5GHZ | CHANNEL_OFDM; |