Commit fa46bd62 authored by Ming Yen Hsieh's avatar Ming Yen Hsieh Committed by Felix Fietkau

wifi: mt76: mt7925: ensure 4-byte alignment for suspend & wow command

Before sending suspend & wow command to FW, its length should be
4-bytes alignd.

Fixes: c948b5da ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: default avatarMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent ecf0b2b8
...@@ -2527,6 +2527,7 @@ int mt76_connac_mcu_set_hif_suspend(struct mt76_dev *dev, bool suspend) ...@@ -2527,6 +2527,7 @@ int mt76_connac_mcu_set_hif_suspend(struct mt76_dev *dev, bool suspend)
__le16 tag; __le16 tag;
__le16 len; __le16 len;
u8 suspend; u8 suspend;
u8 pad[7];
} __packed hif_suspend; } __packed hif_suspend;
} req = { } req = {
.hif_suspend = { .hif_suspend = {
......
...@@ -535,7 +535,7 @@ struct mt7925_wow_pattern_tlv { ...@@ -535,7 +535,7 @@ struct mt7925_wow_pattern_tlv {
u8 offset; u8 offset;
u8 mask[MT76_CONNAC_WOW_MASK_MAX_LEN]; u8 mask[MT76_CONNAC_WOW_MASK_MAX_LEN];
u8 pattern[MT76_CONNAC_WOW_PATTEN_MAX_LEN]; u8 pattern[MT76_CONNAC_WOW_PATTEN_MAX_LEN];
u8 rsv[4]; u8 rsv[7];
} __packed; } __packed;
static inline enum connac3_mcu_cipher_type static inline enum connac3_mcu_cipher_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment