wifi: mt76: mt7996: fix the size of struct bss_rate_tlv
authorSujuan Chen <sujuan.chen@mediatek.com>
Mon, 23 Oct 2023 15:38:49 +0000 (23:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:23 +0000 (15:35 -0800)
[ Upstream commit 4aa9992674e70074fce450f65ebc95c2ba2b79ae ]

Align the format of struct bss_rate_tlv to the firmware.

Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com>
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/mt7996/mcu.h

index e4b3122..dc8d0a3 100644 (file)
@@ -221,7 +221,7 @@ struct bss_rate_tlv {
        u8 short_preamble;
        u8 bc_fixed_rate;
        u8 mc_fixed_rate;
-       u8 __rsv2[1];
+       u8 __rsv2[9];
 } __packed;
 
 struct bss_ra_tlv {