diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-08 17:19:21 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-08 17:19:21 +0000 |
commit | 58b587ee61090b4b3c8c0092cdb60a980b86096a (patch) | |
tree | 17d2cd06cf760fbef6e0de850878e5a40aeeb4f8 /package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch | |
parent | 954994200e58210757f7b12ebf6ed41dc1fa6d9f (diff) |
ath9k: add more fixes for half/quarter rate support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27562 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch')
-rw-r--r-- | package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch b/package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch new file mode 100644 index 000000000..f749f1d62 --- /dev/null +++ b/package/mac80211/patches/544-ath9k_fix_ar9287_mac_clock.patch @@ -0,0 +1,14 @@ +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -88,7 +88,10 @@ static void ath9k_hw_set_clockrate(struc + struct ath_common *common = ath9k_hw_common(ah); + unsigned int clockrate; + +- if (!ah->curchan) /* should really check for CCK instead */ ++ /* AR9287 v1.3+ uses async FIFO and runs the MAC at 117 MHz */ ++ if (AR_SREV_9287(ah) && AR_SREV_9287_13_OR_LATER(ah)) ++ clockrate = 117; ++ else if (!ah->curchan) /* should really check for CCK instead */ + clockrate = ATH9K_CLOCK_RATE_CCK; + else if (conf->channel->band == IEEE80211_BAND_2GHZ) + clockrate = ATH9K_CLOCK_RATE_2GHZ_OFDM; |