mt76: mt7915: fix bit fields for HT rate idx
authorShayne Chen <shayne.chen@mediatek.com>
Tue, 20 Jul 2021 13:00:14 +0000 (21:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:36 +0000 (19:16 +0100)
commit2bfda0a8dc7770bffc2d77b4dfb386b4086f9ccf
treec1bbe3ef21265107eb560dbdcc831b59b6d2e93a
parent02c474990173a78c05dbc7ffe1cd2d0b771023b1
mt76: mt7915: fix bit fields for HT rate idx

[ Upstream commit 47f1c08db7f3aaa2d13f8e56209375462ace7b8a ]

The bit fields of tx rate idx should be 6 bits, otherwise it might be
incorrect in HT mode.
For VHT/HE rates, only 4 bits are actually used by rate idx, the other
2 bits are used for other functions.

Fixes: c31d94af1843 ("mt76: mt7915: fix tx rate related fields in tx descriptor")
Signed-off-by: Shayne Chen <shayne.chen@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.h