mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: fix struct mt7996_mcu_uni_event
The cid field is defined as a two-byte value in the firmware.
Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: StanleyYP Wang <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
f21748c6cd
commit
88ed9f8abc
+1
-1
@@ -245,7 +245,7 @@ mt7996_mcu_parse_response(struct mt76_dev *mdev, int cmd,
|
||||
event = (struct mt7996_mcu_uni_event *)skb->data;
|
||||
ret = le32_to_cpu(event->status);
|
||||
/* skip invalid event */
|
||||
if (mcu_cmd != event->cid)
|
||||
if (mcu_cmd != le16_to_cpu(event->cid))
|
||||
ret = -EAGAIN;
|
||||
} else {
|
||||
skb_pull(skb, sizeof(struct mt7996_mcu_rxd));
|
||||
|
||||
+2
-2
@@ -25,8 +25,8 @@ struct mt7996_mcu_rxd {
|
||||
};
|
||||
|
||||
struct mt7996_mcu_uni_event {
|
||||
u8 cid;
|
||||
u8 __rsv[3];
|
||||
__le16 cid;
|
||||
u8 __rsv[2];
|
||||
__le32 status; /* 0: success, others: fail */
|
||||
} __packed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user