mac80211/minstrel_ht: disable multiple consecutive sample attempts
authorFelix Fietkau <nbd@openwrt.org>
Tue, 5 Mar 2013 13:20:19 +0000 (14:20 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:36:06 +0000 (16:36 +0100)
The last minstrel_ht changes increased the sampling frequency for
potentially useful rates to decrease the response time to rate
fluctuations. This caused an increase in sampling frequency that can
slightly reduce throughput, so this patch limits the sampling attempts
to one per rate instead of two.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c

index da4ec73f34150a7289aa20e75895842ac40d1c65..aa59539e5b27ddd9af414e8794119c1dd534154a 100644 (file)
@@ -480,7 +480,7 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband,
 
        if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) {
                mi->sample_wait = 16 + 2 * MINSTREL_TRUNC(mi->avg_ampdu_len);
-               mi->sample_tries = 2;
+               mi->sample_tries = 1;
                mi->sample_count--;
        }