developer | e5c01a4 | 2022-12-23 18:17:33 +0800 | [diff] [blame^] | 1 | From 5842d6dc7b6644545dac3444a522910a87df7e2b Mon Sep 17 00:00:00 2001 |
| 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Fri, 9 Dec 2022 16:22:16 +0800 |
| 4 | Subject: [PATCH 4/7] wifi: mt76: connac: fix POWER_CTRL command name typo |
| 5 | |
| 6 | Fix typo MCU_UNI_CMD_POWER_CREL to MCU_UNI_CMD_POWER_CTRL. |
| 7 | |
| 8 | Fixes: 779d34de055e ("wifi: mt76: connac: add more unified command IDs") |
| 9 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 10 | Change-Id: I89f9e930be97acb91b456c6361b8fb818fe6cbda |
| 11 | --- |
| 12 | mt76_connac_mcu.h | 2 +- |
| 13 | mt7996/mcu.c | 2 +- |
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/mt76_connac_mcu.h b/mt76_connac_mcu.h |
| 17 | index f1e942b..82fdf6d 100644 |
| 18 | --- a/mt76_connac_mcu.h |
| 19 | +++ b/mt76_connac_mcu.h |
| 20 | @@ -1198,7 +1198,7 @@ enum { |
| 21 | MCU_UNI_CMD_REPT_MUAR = 0x09, |
| 22 | MCU_UNI_CMD_WSYS_CONFIG = 0x0b, |
| 23 | MCU_UNI_CMD_REG_ACCESS = 0x0d, |
| 24 | - MCU_UNI_CMD_POWER_CREL = 0x0f, |
| 25 | + MCU_UNI_CMD_POWER_CTRL = 0x0f, |
| 26 | MCU_UNI_CMD_RX_HDR_TRANS = 0x12, |
| 27 | MCU_UNI_CMD_SER = 0x13, |
| 28 | MCU_UNI_CMD_TWT = 0x14, |
| 29 | diff --git a/mt7996/mcu.c b/mt7996/mcu.c |
| 30 | index a88fc76..d781c6e 100644 |
| 31 | --- a/mt7996/mcu.c |
| 32 | +++ b/mt7996/mcu.c |
| 33 | @@ -2399,7 +2399,7 @@ mt7996_mcu_restart(struct mt76_dev *dev) |
| 34 | .power_mode = 1, |
| 35 | }; |
| 36 | |
| 37 | - return mt76_mcu_send_msg(dev, MCU_WM_UNI_CMD(POWER_CREL), &req, |
| 38 | + return mt76_mcu_send_msg(dev, MCU_WM_UNI_CMD(POWER_CTRL), &req, |
| 39 | sizeof(req), false); |
| 40 | } |
| 41 | |
| 42 | -- |
| 43 | 2.36.1 |
| 44 | |