summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-04 01:25:42 +0300
committerJohannes Berg <johannes.berg@intel.com>2016-04-05 12:40:06 +0300
commit06171e9c0bd54bd7dde67dfb2fa4cced23cff880 (patch)
tree5231a7933947f2163e395e105f425dde6f184082 /include/net
parent07310a63147164eaf44a68932fbe9dbbde0fa82b (diff)
downloadlinux-06171e9c0bd54bd7dde67dfb2fa4cced23cff880.tar.xz
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 'include/net')
0 files changed, 0 insertions, 0 deletions