Commit a451aa66 authored by Sujith's avatar Sujith Committed by John W. Linville

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: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent db2f63f6
...@@ -284,8 +284,8 @@ static bool ath9k_hw_iscal_supported(struct ath_hw *ah, ...@@ -284,8 +284,8 @@ static bool ath9k_hw_iscal_supported(struct ath_hw *ah,
return true; return true;
case ADC_GAIN_CAL: case ADC_GAIN_CAL:
case ADC_DC_CAL: case ADC_DC_CAL:
if (conf->channel->band == IEEE80211_BAND_5GHZ && if (!(conf->channel->band == IEEE80211_BAND_2GHZ &&
conf_is_ht20(conf)) conf_is_ht20(conf)))
return true; return true;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment