mt76: mt7615: fix tx status rate index calculation
authorFelix Fietkau <nbd@nbd.name>
Wed, 22 Apr 2020 11:10:00 +0000 (13:10 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:32 +0000 (19:52 +0200)
commit97507b38a4de63e55801bc91a107c2794159ccd6
tree2905d0e5665e07bc2d4092e294215a74b1b403d9
parentad333c2ad23ec179b0c907e8553779873f4cc1c8
mt76: mt7615: 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/mt7615/mac.c