From: Felix Fietkau Date: Sat, 2 Mar 2013 20:20:14 +0000 (+0100) Subject: minstrel_ht: increase sampling frequency X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=96d4ac3f2f287a143adb1926eae86dbe255a7cce;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: Johannes Berg --- 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) } } - /* try to sample up to half of the available rates during each interval */ - mi->sample_count *= 4; + /* try to sample all available rates during each interval */ + mi->sample_count *= 8; cur_prob = 0; cur_prob_tp = 0;