mac80211: minstrel_ht: reduce the need to sample slower rates
authorFelix Fietkau <nbd@nbd.name>
Wed, 27 Jan 2021 05:57:32 +0000 (06:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Feb 2021 07:57:24 +0000 (08:57 +0100)
commit7aece471a0e6e3cb84a89ce09de075c91f58d357
treea882e99c8953ec24ac565e7f72107767d5309e5e
parent2012a2f7bcd2aa515430a75f1227471ab4ebd7df
mac80211: minstrel_ht: reduce the need to sample slower rates

In order to more gracefully be able to fall back to lower rates without too
much throughput fluctuations, initialize all untested rates below tested ones
to the maximum probabilty of higher rates.
Usually this leads to untested lower rates getting initialized with a
probability value of 100%, making them better candidates for fallback without
having to rely on random probing

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210127055735.78599-3-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/rc80211_minstrel_ht.h