From 264587e8f406497c150db71386544d89093599e3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 31 Aug 2011 06:34:53 +0000 Subject: ath9k: merge a pending fix for 5 ghz rx latency git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28137 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/patches/300-pending_work.patch | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'package/mac80211/patches/300-pending_work.patch') 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 { -- cgit v1.2.3