developer | da18a74 | 2023-04-06 13:44:00 +0800 | [diff] [blame] | 1 | From 576d54b4dce61e33ad31b8d8266548972ea13049 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: Thu, 9 Mar 2023 18:45:04 +0800 |
developer | da18a74 | 2023-04-06 13:44:00 +0800 | [diff] [blame] | 4 | Subject: [PATCH 28/29] wifi: mt76: testmode: add chainmask hacking for eagle |
| 5 | band 2 4T5R |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 8 | --- |
| 9 | mt7996/testmode.c | 1 + |
| 10 | 1 file changed, 1 insertion(+) |
| 11 | |
| 12 | diff --git a/mt7996/testmode.c b/mt7996/testmode.c |
developer | da18a74 | 2023-04-06 13:44:00 +0800 | [diff] [blame] | 13 | index 5dbbb78..1721251 100644 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 14 | --- a/mt7996/testmode.c |
| 15 | +++ b/mt7996/testmode.c |
| 16 | @@ -446,6 +446,7 @@ mt7996_tm_set_params(struct mt76_phy *mphy, struct nlattr **tb, |
| 17 | return 0; |
| 18 | |
| 19 | chainmask = chainmask >> dev->chainshift[band_idx]; |
| 20 | + chainmask = 0x1f; /* hacking for eagle band2 4T5R */ |
| 21 | if (td->tx_antenna_mask > chainmask) |
| 22 | return -EINVAL; |
| 23 | |
| 24 | -- |
developer | da18a74 | 2023-04-06 13:44:00 +0800 | [diff] [blame] | 25 | 2.18.0 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 26 | |