]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:02 +0000 (14:06 +0200)
[ Upstream commit b1fe07ed21024f64719315ba0f3a5676d8b36db6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c

index 1fea9266d4b853d65349bd5e62b644a364caba51..ea5ae0fc8f549c5db03e80551ea4269dbadc6263 100644 (file)
@@ -1014,7 +1014,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;