diff options
author | 2016-03-03 23:25:42 +0100 | |
---|---|---|
committer | 2016-04-05 11:40:06 +0200 | |
commit | 06171e9c0bd54bd7dde67dfb2fa4cced23cff880 (patch) | |
tree | 5231a7933947f2163e395e105f425dde6f184082 /tools/perf/scripts/python | |
parent | mac80211: do not pass injected frames without a valid rate to the driver (diff) | |
download | linux-dev-06171e9c0bd54bd7dde67dfb2fa4cced23cff880.tar.xz linux-dev-06171e9c0bd54bd7dde67dfb2fa4cced23cff880.zip |
mac80211: minstrel_ht: improve sample rate skip logic
There were a few issues that were slowing down the process of finding
the optimal rate, especially on devices with multi-rate retry
limitations:
When max_tp_rate[0] was slower than max_tp_rate[1], the code did not
sample max_tp_rate[1], which would often allow it to switch places with
max_tp_rate[0] (e.g. if only the first sampling attempts were bad, but the
rate is otherwise good).
Also, sample attempts of rates between max_tp_rate[0] and [1] were being
ignored in this case, because the code only checked if the rate was
slower than [1].
Fix this by checking against the fastest / second fastest max_tp_rate
instead of assuming a specific order between the two.
In my tests this patch significantly reduces the time until minstrel_ht
finds the optimal rate right after assoc
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions