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.

Signed-off-by: Ming Yen Hsieh <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Ming Yen Hsieh
2024-04-03 12:39:12 +02:00
committed by Felix Fietkau
parent 0436995fec
commit 75759dca73
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -2527,6 +2527,7 @@ int mt76_connac_mcu_set_hif_suspend(struct mt76_dev *dev, bool suspend)
__le16 tag;
__le16 len;
u8 suspend;
u8 pad[7];
} __packed hif_suspend;
} req = {
.hif_suspend = {
+1 -1
View File
@@ -535,7 +535,7 @@ struct mt7925_wow_pattern_tlv {
u8 offset;
u8 mask[MT76_CONNAC_WOW_MASK_MAX_LEN];
u8 pattern[MT76_CONNAC_WOW_PATTEN_MAX_LEN];
u8 rsv[4];
u8 rsv[7];
} __packed;
static inline enum connac3_mcu_cipher_type