diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-31 06:34:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-31 06:34:53 +0000 |
commit | 71184985119d333d9f374740c7a2cbb58fe598cd (patch) | |
tree | c262866f9c47e2cb852d2564df58e432c8bf59e9 /package/mac80211/patches/300-pending_work.patch | |
parent | 7f9ad157b98e04fe1234552634b25a3a1b676337 (diff) | |
download | upstream-71184985119d333d9f374740c7a2cbb58fe598cd.tar.gz upstream-71184985119d333d9f374740c7a2cbb58fe598cd.tar.bz2 upstream-71184985119d333d9f374740c7a2cbb58fe598cd.zip |
ath9k: merge a pending fix for 5 ghz rx latency
SVN-Revision: 28137
Diffstat (limited to 'package/mac80211/patches/300-pending_work.patch')
-rw-r--r-- | package/mac80211/patches/300-pending_work.patch | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 01df8f7456..ce766af82e 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -258,7 +258,28 @@ if (AR_SREV_9340(ah) && !ah->is_clk_25mhz) --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c -@@ -997,8 +997,14 @@ void ath9k_hw_init_global_settings(struc +@@ -975,7 +975,10 @@ void ath9k_hw_init_global_settings(struc + if (ah->misc_mode != 0) + REG_SET_BIT(ah, AR_PCU_MISC, ah->misc_mode); + +- rx_lat = 37; ++ if (IS_CHAN_A_FAST_CLOCK(ah, chan)) ++ rx_lat = 41; ++ else ++ rx_lat = 37; + tx_lat = 54; + + if (IS_CHAN_HALF_RATE(chan)) { +@@ -989,7 +992,7 @@ void ath9k_hw_init_global_settings(struc + sifstime = 32; + } else if (IS_CHAN_QUARTER_RATE(chan)) { + eifs = 340; +- rx_lat *= 4; ++ rx_lat = (rx_lat * 4) - 1; + tx_lat *= 4; + if (IS_CHAN_A_FAST_CLOCK(ah, chan)) + tx_lat += 22; +@@ -997,8 +1000,14 @@ void ath9k_hw_init_global_settings(struc slottime = 21; sifstime = 64; } else { |