mac80211: minstrel_ht: improve sample rate selection
authorFelix Fietkau <nbd@nbd.name>
Fri, 15 Jan 2021 12:02:39 +0000 (13:02 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jan 2021 08:11:37 +0000 (09:11 +0100)
commit019c6fc2782998fbaa0bdca578e26f7823a11cf2
tree3869619ba8b6846d7666f68486cbeeabcf56c56c
parent1ae8bba9a23b6cc9efbd9b4ca485ed057d5639a6
mac80211: minstrel_ht: improve sample rate selection

Always allow sampling of rates faster than the primary max throughput rate.
When the second max_tp_rate is higher than the first one, sample attempts were
previously skipped, potentially causing rate control to get stuck at a slightly
lower rate

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