diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-04-13 21:56:43 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:46 -0400 |
commit | a451aa66dcb14efcb7addf1d8edcac8df76a97b6 (patch) | |
tree | ee76f6db63a25d2389cd364be548850222880a17 /drivers | |
parent | db2f63f60a087ed29ae04310c1076c61f77a5d20 (diff) | |
download | kernel-crypto-a451aa66dcb14efcb7addf1d8edcac8df76a97b6.tar.gz kernel-crypto-a451aa66dcb14efcb7addf1d8edcac8df76a97b6.tar.xz kernel-crypto-a451aa66dcb14efcb7addf1d8edcac8df76a97b6.zip |
ath9k: Fix bug in determining calibration support
ADC gain calibration has to be done for all non 2GHZ-HT20 channels.
Regression from "ath9k: use ieee80211_conf on ath9k_hw_iscal_supported()"
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index d0b675562d4..3195c0b9a6a 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c @@ -284,8 +284,8 @@ static bool ath9k_hw_iscal_supported(struct ath_hw *ah, return true; case ADC_GAIN_CAL: case ADC_DC_CAL: - if (conf->channel->band == IEEE80211_BAND_5GHZ && - conf_is_ht20(conf)) + if (!(conf->channel->band == IEEE80211_BAND_2GHZ && + conf_is_ht20(conf))) return true; break; } |