mt76: mt7921: fix ht mcs in mt7921_mac_add_txs_skb()
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Thu, 6 Jan 2022 06:20:57 +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 mt7921_mac_add_txs_skb()
has already been converted to the expected format.

Fixes: 970ab80ef9f63 ("mt76: mt7921: 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/mt7921/mac.c

index 0744f6e42ba3ff30735bde43599db383493f9063..cc070180fdc0e1a0ba81a15d40ee1d45c8e99319 100644 (file)
@@ -1092,7 +1092,6 @@ mt7921_mac_add_txs_skb(struct mt7921_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;