aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-20 21:38:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-20 21:38:31 +0000
commit1178bae74dea2a15c2d985e515f7cb1c4a0182ce (patch)
treeb9f8e0221d94e10b4459aa5dc00f7d8839d0d346 /package
parent45c088cdf1d633a53095a3a4c824c823e914a147 (diff)
downloadupstream-1178bae74dea2a15c2d985e515f7cb1c4a0182ce.tar.gz
upstream-1178bae74dea2a15c2d985e515f7cb1c4a0182ce.tar.bz2
upstream-1178bae74dea2a15c2d985e515f7cb1c4a0182ce.zip
mac80211: decrease the minstrel_ht sampling interval for faster rate adaption
SVN-Revision: 23555
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/560-minstrel_ht_performance.patch3
-rw-r--r--package/mac80211/patches/561-minstrel_ht_sampling_interval.patch11
2 files changed, 13 insertions, 1 deletions
diff --git a/package/mac80211/patches/560-minstrel_ht_performance.patch b/package/mac80211/patches/560-minstrel_ht_performance.patch
index 43ff78b3a6..a3e7f424ad 100644
--- a/package/mac80211/patches/560-minstrel_ht_performance.patch
+++ b/package/mac80211/patches/560-minstrel_ht_performance.patch
@@ -18,13 +18,14 @@
cur_prob = 0;
cur_prob_tp = 0;
-@@ -572,6 +573,10 @@ minstrel_get_sample_rate(struct minstrel
+@@ -572,6 +573,11 @@ minstrel_get_sample_rate(struct minstrel
return sample_idx;
next:
+ if (mi->sample_retry > 0) {
+ mi->sample_retry--;
+ mi->sample_tries++;
++ mi->sample_wait = 1;
+ }
minstrel_next_sample_idx(mi);
return -1;
diff --git a/package/mac80211/patches/561-minstrel_ht_sampling_interval.patch b/package/mac80211/patches/561-minstrel_ht_sampling_interval.patch
new file mode 100644
index 0000000000..f9465e8be1
--- /dev/null
+++ b/package/mac80211/patches/561-minstrel_ht_sampling_interval.patch
@@ -0,0 +1,11 @@
+--- a/net/mac80211/rc80211_minstrel_ht.c
++++ b/net/mac80211/rc80211_minstrel_ht.c
+@@ -408,7 +408,7 @@ minstrel_ht_tx_status(void *priv, struct
+ mi->ampdu_len += info->status.ampdu_len;
+
+ if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) {
+- mi->sample_wait = 4 + 2 * MINSTREL_TRUNC(mi->avg_ampdu_len);
++ mi->sample_wait = 8 + MINSTREL_TRUNC(mi->avg_ampdu_len);
+ mi->sample_tries = 3;
+ mi->sample_count--;
+ }