]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: minstrel: fix tx status processing corner case
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 Nov 2020 18:33:59 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:27:26 +0000 (13:27 +0100)
commitb48b65efcdf698fb3118c44197b664f3e3bfe708
tree33ec8defcbfee0cb8024532c843fa935a6dbc4ed
parent2216a93ce6841cde69fb6e59763ca029f15e4ddf
mac80211: minstrel: fix tx status processing corner case

commit b2911a84396f72149dce310a3b64d8948212c1b3 upstream.

Some drivers fill the status rate list without setting the rate index after
the final rate to -1. minstrel_ht already deals with this, but minstrel
doesn't, which causes it to get stuck at the lowest rate on these drivers.

Fix this by checking the count as well.

Cc: stable@vger.kernel.org
Fixes: cccf129f820e ("mac80211: add the 'minstrel' rate control algorithm")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20201111183359.43528-3-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/rc80211_minstrel.c