summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-08 17:19:21 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-08 17:19:21 +0000
commit58b587ee61090b4b3c8c0092cdb60a980b86096a (patch)
tree17d2cd06cf760fbef6e0de850878e5a40aeeb4f8 /package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch
parent954994200e58210757f7b12ebf6ed41dc1fa6d9f (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/548-ath9k_half_quarter_synth_delay.patch')
-rw-r--r--package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch b/package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch
new file mode 100644
index 000000000..6429d1907
--- /dev/null
+++ b/package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c
++++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c
+@@ -627,6 +627,11 @@ static void ar5008_hw_init_bb(struct ath
+ else
+ synthDelay /= 10;
+
++ if (IS_CHAN_HALF_RATE(chan))
++ synthDelay *= 2;
++ else if (IS_CHAN_QUARTER_RATE(chan))
++ synthDelay *= 4;
++
+ REG_WRITE(ah, AR_PHY_ACTIVE, AR_PHY_ACTIVE_EN);
+
+ udelay(synthDelay + BASE_ACTIVATE_DELAY);