blob: 12c2a669c229a7c948eaa1cb78b25308b9397672 [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From 889874fb036ae950793b5738326ac08bfe215e7c Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Mon, 30 Oct 2023 20:19:41 +0800
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 005/193] mtk: mt76: mt7996: enable ser query
developer66e89bc2024-04-23 14:50:01 +08005
6Do not return -EINVAL when action is UNI_CMD_SER_QUERY for user
7to dump SER information from FW.
8
developer66e89bc2024-04-23 14:50:01 +08009Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt7996/mcu.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/mt7996/mcu.c b/mt7996/mcu.c
developer1f55fcf2024-10-17 14:52:33 +080015index 1fed8eb..b765295 100644
developer66e89bc2024-04-23 14:50:01 +080016--- a/mt7996/mcu.c
17+++ b/mt7996/mcu.c
developerd0c89452024-10-11 16:53:27 +080018@@ -3888,6 +3888,8 @@ int mt7996_mcu_set_ser(struct mt7996_dev *dev, u8 action, u8 val, u8 band)
developer66e89bc2024-04-23 14:50:01 +080019 };
20
21 switch (action) {
22+ case UNI_CMD_SER_QUERY:
23+ break;
24 case UNI_CMD_SER_SET:
25 req.set.mask = cpu_to_le32(val);
26 break;
27--
developerd0c89452024-10-11 16:53:27 +0800282.45.2
developer66e89bc2024-04-23 14:50:01 +080029