diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-04-13 12:26:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:46 -0400 |
commit | db2f63f60a087ed29ae04310c1076c61f77a5d20 (patch) | |
tree | 32506144f45455d1e5ec65ed7fcd619aff65b21d /drivers | |
parent | 822b0dfc135cf205379ea62aae7a5b393811b238 (diff) |
ath9k: Fix bug in checking HT flag
The operating HT mode is stored in chanmode and
not channelFlags.
Cc: stable@kernel.org
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index e2d62e97131c..d0b675562d40 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -883,7 +883,7 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, | |||
883 | static bool ar9285_clc(struct ath_hw *ah, struct ath9k_channel *chan) | 883 | static bool ar9285_clc(struct ath_hw *ah, struct ath9k_channel *chan) |
884 | { | 884 | { |
885 | REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_CL_CAL_ENABLE); | 885 | REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_CL_CAL_ENABLE); |
886 | if (chan->channelFlags & CHANNEL_HT20) { | 886 | if (IS_CHAN_HT20(chan)) { |
887 | REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_PARALLEL_CAL_ENABLE); | 887 | REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_PARALLEL_CAL_ENABLE); |
888 | REG_SET_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN); | 888 | REG_SET_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN); |
889 | REG_CLR_BIT(ah, AR_PHY_AGC_CONTROL, | 889 | REG_CLR_BIT(ah, AR_PHY_AGC_CONTROL, |