summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/462-ath5k_fix_sifs.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-09 21:11:06 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-09 21:11:06 +0000
commit823f142ee2870f7cf610c22de45bc70ff4c8952c (patch)
treea63f6aa712f9cc5b207e778eebf2ff371ced4e66 /package/mac80211/patches/462-ath5k_fix_sifs.patch
parente5c2ddb8ef383585948f44e4c1cdb6162d05a841 (diff)
ath5k: add a few fixes that improve performance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26564 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/462-ath5k_fix_sifs.patch')
-rw-r--r--package/mac80211/patches/462-ath5k_fix_sifs.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/mac80211/patches/462-ath5k_fix_sifs.patch b/package/mac80211/patches/462-ath5k_fix_sifs.patch
new file mode 100644
index 000000000..7d3efcae5
--- /dev/null
+++ b/package/mac80211/patches/462-ath5k_fix_sifs.patch
@@ -0,0 +1,23 @@
+--- a/drivers/net/wireless/ath/ath5k/ath5k.h
++++ b/drivers/net/wireless/ath/ath5k/ath5k.h
+@@ -224,8 +224,7 @@
+
+ /* SIFS */
+ #define AR5K_INIT_SIFS_TURBO 6
+-/* XXX: 8 from initvals 10 from standard */
+-#define AR5K_INIT_SIFS_DEFAULT_BG 8
++#define AR5K_INIT_SIFS_DEFAULT_BG 10
+ #define AR5K_INIT_SIFS_DEFAULT_A 16
+ #define AR5K_INIT_SIFS_HALF_RATE 32
+ #define AR5K_INIT_SIFS_QUARTER_RATE 64
+--- a/drivers/net/wireless/ath/ath5k/qcu.c
++++ b/drivers/net/wireless/ath/ath5k/qcu.c
+@@ -519,7 +519,7 @@ int ath5k_hw_set_ifs_intervals(struct at
+ return -EINVAL;
+
+ sifs = ath5k_hw_get_default_sifs(ah);
+- sifs_clock = ath5k_hw_htoclock(ah, sifs);
++ sifs_clock = ath5k_hw_htoclock(ah, sifs - 2);
+
+ /* EIFS
+ * Txtime of ack at lowest rate + SIFS + DIFS