]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: fix regression in the max_prob_rate fix
authorFelix Fietkau <nbd@nbd.name>
Tue, 26 Jan 2021 15:44:09 +0000 (16:44 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jan 2021 21:06:38 +0000 (22:06 +0100)
commit9a375dbb5cac69e1d376a91a21e3e949d7923084
treef854c66be070893b5080c65b66ef10034b114141
parent795cbdf9c2534cbc737bda0384c6d9cecfd72db4
mac80211: minstrel_ht: fix regression in the max_prob_rate fix

Since mi->max_prob_rate is overwritten after the loop that calls
minstrel_ht_set_best_prob_rate, the new best rate needs to be written to *dest

Fixes: c915b90b5fc2 ("mac80211: minstrel_ht: fix max probability rate selection")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210126154409.6755-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c