aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-02 15:20:14 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 10:35:53 -0500
commit96d4ac3f2f287a143adb1926eae86dbe255a7cce (patch)
treee4cd1d0325292eb9f559319c68990fc6ed3cde2f /net/mac80211
parenta299c6d591f8f6abfe42e77d70ed688067748135 (diff)
minstrel_ht: increase sampling frequency
Try to sample all available rates, as sample attempts do not cost much airtime and are appropriately spaced based on the average A-MPDU length. This helps with faster recovery on rate fluctuations. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/rc80211_minstrel_ht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 6c735e0d66a3..4d35bc5a575b 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -312,8 +312,8 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
312 } 312 }
313 } 313 }
314 314
315 /* try to sample up to half of the available rates during each interval */ 315 /* try to sample all available rates during each interval */
316 mi->sample_count *= 4; 316 mi->sample_count *= 8;
317 317
318 cur_prob = 0; 318 cur_prob = 0;
319 cur_prob_tp = 0; 319 cur_prob_tp = 0;