diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-04-13 12:26:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:46 -0400 |
commit | a451aa66dcb14efcb7addf1d8edcac8df76a97b6 (patch) | |
tree | ee76f6db63a25d2389cd364be548850222880a17 /drivers/net/wireless/ath/ath9k/calib.c | |
parent | db2f63f60a087ed29ae04310c1076c61f77a5d20 (diff) |
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/net/wireless/ath/ath9k/calib.c')
-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 d0b675562d40..3195c0b9a6a7 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, | |||
284 | return true; | 284 | return true; |
285 | case ADC_GAIN_CAL: | 285 | case ADC_GAIN_CAL: |
286 | case ADC_DC_CAL: | 286 | case ADC_DC_CAL: |
287 | if (conf->channel->band == IEEE80211_BAND_5GHZ && | 287 | if (!(conf->channel->band == IEEE80211_BAND_2GHZ && |
288 | conf_is_ht20(conf)) | 288 | conf_is_ht20(conf))) |
289 | return true; | 289 | return true; |
290 | break; | 290 | break; |
291 | } | 291 | } |