aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/561-minstrel_sample_retransmit.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-21 00:33:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-21 00:33:00 +0000
commitad06ff1186a055552e4e430b1f40593b9668b439 (patch)
tree5dd7771323952cb141b4bd3c6a15c07b61426d09 /package/mac80211/patches/561-minstrel_sample_retransmit.patch
parenta7bdb90f3843a2d36bc232781d670c72ab76a7d8 (diff)
downloadupstream-ad06ff1186a055552e4e430b1f40593b9668b439.tar.gz
upstream-ad06ff1186a055552e4e430b1f40593b9668b439.tar.bz2
upstream-ad06ff1186a055552e4e430b1f40593b9668b439.zip
ath9k: fix sampling frame handling wrt. aggregation, replace minstrel_ht performance fixes for better performance
SVN-Revision: 23558
Diffstat (limited to 'package/mac80211/patches/561-minstrel_sample_retransmit.patch')
-rw-r--r--package/mac80211/patches/561-minstrel_sample_retransmit.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mac80211/patches/561-minstrel_sample_retransmit.patch b/package/mac80211/patches/561-minstrel_sample_retransmit.patch
new file mode 100644
index 0000000000..2ae03d8787
--- /dev/null
+++ b/package/mac80211/patches/561-minstrel_sample_retransmit.patch
@@ -0,0 +1,13 @@
+--- a/net/mac80211/rc80211_minstrel_ht.c
++++ b/net/mac80211/rc80211_minstrel_ht.c
+@@ -506,7 +506,9 @@ minstrel_ht_set_rate(struct minstrel_pri
+ if (!mr->retry_updated)
+ minstrel_calc_retransmit(mp, mi, index);
+
+- if (mr->probability < MINSTREL_FRAC(20, 100))
++ if (sample)
++ rate->count = 1;
++ else if (mr->probability < MINSTREL_FRAC(20, 100))
+ rate->count = 2;
+ else if (rtscts)
+ rate->count = mr->retry_count_rtscts;