developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 1 | From 33211d380fbf3b0892e560db99ac8dbc5c4e8cd5 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 | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 23/39] wifi: mt76: testmode: add atenl support in mt7996 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 7 | --- |
| 8 | testmode.c | 3 ++- |
| 9 | testmode.h | 2 ++ |
| 10 | 2 files changed, 4 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/testmode.c b/testmode.c |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 13 | index 0accc71..0d2bae9 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 14 | --- a/testmode.c |
| 15 | +++ b/testmode.c |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 16 | @@ -612,7 +612,8 @@ int mt76_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *msg, |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 17 | |
| 18 | if (dev->test_mtd.name && |
| 19 | (nla_put_string(msg, MT76_TM_ATTR_MTD_PART, dev->test_mtd.name) || |
| 20 | - nla_put_u32(msg, MT76_TM_ATTR_MTD_OFFSET, dev->test_mtd.offset))) |
| 21 | + nla_put_u32(msg, MT76_TM_ATTR_MTD_OFFSET, dev->test_mtd.offset) || |
| 22 | + nla_put_u8(msg, MT76_TM_ATTR_BAND_IDX, phy->band_idx))) |
| 23 | goto out; |
| 24 | |
| 25 | if (nla_put_u32(msg, MT76_TM_ATTR_TX_COUNT, td->tx_count) || |
| 26 | diff --git a/testmode.h b/testmode.h |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 27 | index 5e2792d..a40cd74 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 28 | --- a/testmode.h |
| 29 | +++ b/testmode.h |
| 30 | @@ -17,6 +17,7 @@ |
| 31 | * |
| 32 | * @MT76_TM_ATTR_MTD_PART: mtd partition used for eeprom data (string) |
| 33 | * @MT76_TM_ATTR_MTD_OFFSET: offset of eeprom data within the partition (u32) |
| 34 | + * @MT76_TM_ATTR_BAND_IDX: band idx of the chip (u8) |
| 35 | * |
| 36 | * @MT76_TM_ATTR_TX_COUNT: configured number of frames to send when setting |
| 37 | * state to MT76_TM_STATE_TX_FRAMES (u32) |
| 38 | @@ -56,6 +57,7 @@ enum mt76_testmode_attr { |
| 39 | |
| 40 | MT76_TM_ATTR_MTD_PART, |
| 41 | MT76_TM_ATTR_MTD_OFFSET, |
| 42 | + MT76_TM_ATTR_BAND_IDX, |
| 43 | |
| 44 | MT76_TM_ATTR_TX_COUNT, |
| 45 | MT76_TM_ATTR_TX_LENGTH, |
| 46 | -- |
developer | 3e11ee3 | 2023-09-27 12:24:47 +0800 | [diff] [blame^] | 47 | 2.18.0 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 48 | |