]> Pileus Git - ~andy/linux/commitdiff
minstrel_ht: increase sampling frequency
authorFelix Fietkau <nbd@openwrt.org>
Sat, 2 Mar 2013 20:20:14 +0000 (21:20 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:53 +0000 (16:35 +0100)
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>
net/mac80211/rc80211_minstrel_ht.c

index 6c735e0d66a31e7d83bb1cb75a8deb6b51964dd5..4d35bc5a575b15e2b1c440638b444638f9ced0b8 100644 (file)
@@ -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;