mt76: mt7921: add PATCH_FINISH_REQ cmd response handling
authorYN Chen <yn.chen@mediatek.com>
Sat, 28 May 2022 01:28:53 +0000 (09:28 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:01 +0000 (13:40 +0200)
add new case to fetch the return value of PATCH_FINISH_REQ

Signed-off-by: YN Chen <yn.chen@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c

index 3b5b475..7c55b71 100644 (file)
@@ -111,7 +111,8 @@ int mt7921_mcu_parse_response(struct mt76_dev *mdev, int cmd,
        if (seq != rxd->seq)
                return -EAGAIN;
 
-       if (cmd == MCU_CMD(PATCH_SEM_CONTROL)) {
+       if (cmd == MCU_CMD(PATCH_SEM_CONTROL) ||
+           cmd == MCU_CMD(PATCH_FINISH_REQ)) {
                skb_pull(skb, sizeof(*rxd) - 4);
                ret = *skb->data;
        } else if (cmd == MCU_EXT_CMD(THERMAL_CTRL)) {