mac80211: minstrel_ht: fix max probability rate selection
authorFelix Fietkau <nbd@nbd.name>
Fri, 15 Jan 2021 12:02:40 +0000 (13:02 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jan 2021 08:11:37 +0000 (09:11 +0100)
commita7fca4e4037f7e3fa84d4532ea0fd8b00c39c7a2
treefe586de63c09fe928995f0e604b260a13c063589
parent019c6fc2782998fbaa0bdca578e26f7823a11cf2
mac80211: minstrel_ht: fix max probability rate selection

- do not select rates faster than the max throughput rate if probability is lower
- reset previous rate before sorting again

This ensures that the max prob rate gets set to a more reliable rate

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