ath9k: add more fixes for half/quarter rate support
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 544-ath9k_fix_ar9287_mac_clock.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -88,7 +88,10 @@ static void ath9k_hw_set_clockrate(struc
4 struct ath_common *common = ath9k_hw_common(ah);
5 unsigned int clockrate;
6
7 - if (!ah->curchan) /* should really check for CCK instead */
8 + /* AR9287 v1.3+ uses async FIFO and runs the MAC at 117 MHz */
9 + if (AR_SREV_9287(ah) && AR_SREV_9287_13_OR_LATER(ah))
10 + clockrate = 117;
11 + else if (!ah->curchan) /* should really check for CCK instead */
12 clockrate = ATH9K_CLOCK_RATE_CCK;
13 else if (conf->channel->band == IEEE80211_BAND_2GHZ)
14 clockrate = ATH9K_CLOCK_RATE_2GHZ_OFDM;