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)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:59 +0000 (13:57 +0100)
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>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c

index 08ec8ce34d77cc6bd8e606fdbc4d5792ac1a09b0..abedd451219c811f4308836ce1d42c4e79bb648a 100644 (file)
@@ -1568,7 +1568,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;