From: Sujith Date: Mon, 13 Apr 2009 16:26:43 +0000 (+0530) Subject: ath9k: Fix bug in determining calibration support X-Git-Tag: v2.6.31-rc1~14^2~645^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a451aa66dcb14efcb7addf1d8edcac8df76a97b6;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index d0b6755..3195c0b 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; }