blob: 4b48730fba99cf422a413d393095d68639f556da [file] [log] [blame]
developera46f6132024-03-26 14:09:54 +08001From a086447ff00030ee7cc2d6b813a0c099ba288990 Mon Sep 17 00:00:00 2001
developerf552fec2023-03-27 11:22:06 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Wed, 28 Dec 2022 22:24:25 +0800
developereb155692024-01-11 14:08:37 +08004Subject: [PATCH 1003/1044] mtk: wifi: mt76: testmode: add atenl support in
developer1a173672023-12-21 14:49:33 +08005 mt7996
developerf552fec2023-03-27 11:22:06 +08006
7Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
8---
9 testmode.c | 3 ++-
10 testmode.h | 2 ++
11 2 files changed, 4 insertions(+), 1 deletion(-)
12
13diff --git a/testmode.c b/testmode.c
developera46f6132024-03-26 14:09:54 +080014index ca4feccf..37783160 100644
developerf552fec2023-03-27 11:22:06 +080015--- a/testmode.c
16+++ b/testmode.c
developerbd9fa1e2023-10-16 11:04:00 +080017@@ -613,7 +613,8 @@ int mt76_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *msg,
developerf552fec2023-03-27 11:22:06 +080018
19 if (dev->test_mtd.name &&
20 (nla_put_string(msg, MT76_TM_ATTR_MTD_PART, dev->test_mtd.name) ||
21- nla_put_u32(msg, MT76_TM_ATTR_MTD_OFFSET, dev->test_mtd.offset)))
22+ nla_put_u32(msg, MT76_TM_ATTR_MTD_OFFSET, dev->test_mtd.offset) ||
23+ nla_put_u8(msg, MT76_TM_ATTR_BAND_IDX, phy->band_idx)))
24 goto out;
25
26 if (nla_put_u32(msg, MT76_TM_ATTR_TX_COUNT, td->tx_count) ||
27diff --git a/testmode.h b/testmode.h
developer1a173672023-12-21 14:49:33 +080028index 5e2792d8..a40cd74b 100644
developerf552fec2023-03-27 11:22:06 +080029--- a/testmode.h
30+++ b/testmode.h
31@@ -17,6 +17,7 @@
32 *
33 * @MT76_TM_ATTR_MTD_PART: mtd partition used for eeprom data (string)
34 * @MT76_TM_ATTR_MTD_OFFSET: offset of eeprom data within the partition (u32)
35+ * @MT76_TM_ATTR_BAND_IDX: band idx of the chip (u8)
36 *
37 * @MT76_TM_ATTR_TX_COUNT: configured number of frames to send when setting
38 * state to MT76_TM_STATE_TX_FRAMES (u32)
39@@ -56,6 +57,7 @@ enum mt76_testmode_attr {
40
41 MT76_TM_ATTR_MTD_PART,
42 MT76_TM_ATTR_MTD_OFFSET,
43+ MT76_TM_ATTR_BAND_IDX,
44
45 MT76_TM_ATTR_TX_COUNT,
46 MT76_TM_ATTR_TX_LENGTH,
47--
developer3e11ee32023-09-27 12:24:47 +0800482.18.0
developerf552fec2023-03-27 11:22:06 +080049