mt76: mt7603: fix tx status rate index calculation
authorFelix Fietkau <nbd@nbd.name>
Wed, 22 Apr 2020 11:15:06 +0000 (13:15 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:33 +0000 (19:52 +0200)
commit40a61c9b2c725da82bd60a39bc54b8884b0a57b5
tree74bd7edad70daaecd8794a1c4753b13ab6383f77
parent97507b38a4de63e55801bc91a107c2794159ccd6
mt76: mt7603: fix tx status rate index calculation

A switch from one rate index to the next only happens when tx count from
the current slot is greater than MT7615_RATE_RETRY, which is 1 has to be
subtracted from count, instead of added to it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/mac.c