summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-04-13 21:56:41 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2009-07-02 16:50:12 -0700
commit5a98e45dcc9223867d0ae74b6fca3506c3ca3afb (patch)
tree9a6a5570a0a4dcbee9e4b8d69a86e69300665dba
parentd62dbfe5039d21aea0d8f024ce4a709ce9e474c6 (diff)
downloadlinux-stable-5a98e45dcc9223867d0ae74b6fca3506c3ca3afb.tar.gz
linux-stable-5a98e45dcc9223867d0ae74b6fca3506c3ca3afb.tar.bz2
linux-stable-5a98e45dcc9223867d0ae74b6fca3506c3ca3afb.zip
ath9k: Fix bug in checking HT flag
commit db2f63f60a087ed29ae04310c1076c61f77a5d20 upstream. The operating HT mode is stored in chanmode and not channelFlags. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/net/wireless/ath9k/calib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/calib.c b/drivers/net/wireless/ath9k/calib.c
index 163aa554eaee..2117074f75c0 100644
--- a/drivers/net/wireless/ath9k/calib.c
+++ b/drivers/net/wireless/ath9k/calib.c
@@ -883,7 +883,7 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,
static bool ar9285_clc(struct ath_hw *ah, struct ath9k_channel *chan)
{
REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_CL_CAL_ENABLE);
- if (chan->channelFlags & CHANNEL_HT20) {
+ if (IS_CHAN_HT20(chan)) {
REG_SET_BIT(ah, AR_PHY_CL_CAL_CTL, AR_PHY_PARALLEL_CAL_ENABLE);
REG_SET_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
REG_CLR_BIT(ah, AR_PHY_AGC_CONTROL,