summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_minstrel_ht.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-03 12:49:51 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 16:35:53 +0100
commit965237ab9f6ab573e0b7574e8ce5cc6aa27d17d4 (patch)
tree37ad4fbf3dd0ad84b443134b2f51b20b631b13f6 /net/mac80211/rc80211_minstrel_ht.h
parent96d4ac3f2f287a143adb1926eae86dbe255a7cce (diff)
downloadblackbird-op-linux-965237ab9f6ab573e0b7574e8ce5cc6aa27d17d4.tar.gz
blackbird-op-linux-965237ab9f6ab573e0b7574e8ce5cc6aa27d17d4.zip
mac80211/minstrel_ht: increase sampling frequency of some slower rates
If a rate is below the max_tp_rate, sample it frequently if: - it is above max_tp_rate2, or - it is above max_prob_rate and is a candidate for max_prob_rate (has fewer streams than max_tp_rate). This helps the retry chain recover more quickly from bad statistics caused by collisions or interference, and slightly reduces throughput fluctuations with higher rates. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht.h')
-rw-r--r--net/mac80211/rc80211_minstrel_ht.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.h b/net/mac80211/rc80211_minstrel_ht.h
index 302dbd52180d..c6d6a0dc46fc 100644
--- a/net/mac80211/rc80211_minstrel_ht.h
+++ b/net/mac80211/rc80211_minstrel_ht.h
@@ -85,6 +85,7 @@ struct minstrel_ht_sta {
/* best probability rate */
unsigned int max_prob_rate;
+ unsigned int max_prob_streams;
/* time of last status update */
unsigned long stats_update;
OpenPOWER on IntegriCloud