1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 00:31:09 +02:00
openwrt-xburst/package/mac80211/patches/548-ath9k_half_quarter_synth_delay.patch
nbd 58b587ee61 ath9k: add more fixes for half/quarter rate support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-08 17:19:21 +00:00

15 lines
400 B
Diff

--- 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);