]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
mt76: mt7915: fix ht mcs in mt7915_mac_add_txs_skb()
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Thu, 6 Jan 2022 06:20:56 +0000 (14:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:02 +0000 (13:58 +0200)
[ Upstream commit d8e4e8d148fb68858d6a997d88a87a2c615629ce ]

The mcs value of HT mode reported by mt7915_mac_add_txs_skb()
has already been converted to the expected format.

Fixes: 9908d98ae72cd ("mt76: mt7915: report tx rate directly from tx status")
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c

index 48f11550228232f73efeb456bcc16ccc53aa8494..d18a2e93cff53cb960dcdfbdd4be2b6c3ca62737 100644 (file)
@@ -1512,7 +1512,6 @@ mt7915_mac_add_txs_skb(struct mt7915_dev *dev, struct mt76_wcid *wcid, int pid,
                break;
        case MT_PHY_TYPE_HT:
        case MT_PHY_TYPE_HT_GF:
-               rate.mcs += (rate.nss - 1) * 8;
                if (rate.mcs > 31)
                        goto out;