mac80211: backport latest version from trunk (as of r28137)
[openwrt-10.03/.git] / package / mac80211 / patches / 590-ath9k_fix_5ghz_adc_cal.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
3 @@ -41,7 +41,8 @@ static bool ar9002_hw_is_cal_supported(s
4         case ADC_DC_CAL:
5                 /* Run ADC Gain Cal for non-CCK & non 2GHz-HT20 only */
6                 if (!IS_CHAN_B(chan) &&
7 -                   !(IS_CHAN_2GHZ(chan) && IS_CHAN_HT20(chan)))
8 +                   !((IS_CHAN_2GHZ(chan) || IS_CHAN_A_FAST_CLOCK(ah, chan)) &&
9 +                     IS_CHAN_HT20(chan)))
10                         supported = true;
11                 break;
12         }