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)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:31 +0000 (10:36 +0200)
commit47f1c08db7f3aaa2d13f8e56209375462ace7b8a
tree6080bb76ff20baf03d52af4a647bd5ee32f743a0
parent978fdd660c50e0c27644a9334c450e1de83ec2ae
mt76: mt7915: fix bit fields for HT rate idx

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>
drivers/net/wireless/mediatek/mt76/mt7915/mac.h