developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 1 | From a086447ff00030ee7cc2d6b813a0c099ba288990 Mon Sep 17 00:00:00 2001 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Wed, 28 Dec 2022 22:24:25 +0800 |
developer | eb15569 | 2024-01-11 14:08:37 +0800 | [diff] [blame] | 4 | Subject: [PATCH 1003/1044] mtk: wifi: mt76: testmode: add atenl support in |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 5 | mt7996 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-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 | |
| 13 | diff --git a/testmode.c b/testmode.c |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 14 | index ca4feccf..37783160 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 15 | --- a/testmode.c |
| 16 | +++ b/testmode.c |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 17 | @@ -613,7 +613,8 @@ int mt76_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *msg, |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 18 | |
| 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) || |
| 27 | diff --git a/testmode.h b/testmode.h |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 28 | index 5e2792d8..a40cd74b 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 29 | --- 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 | -- |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame] | 48 | 2.18.0 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 49 | |