developer | de9ecce | 2023-05-22 11:17:16 +0800 | [diff] [blame] | 1 | From 59c4b77798c213a1766b3dac36a9de08145f063e Mon Sep 17 00:00:00 2001 |
developer | 1bc2ce2 | 2023-03-25 00:47:41 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Thu, 9 Mar 2023 18:45:04 +0800 |
developer | de9ecce | 2023-05-22 11:17:16 +0800 | [diff] [blame] | 4 | Subject: [PATCH 21/22] mt76: testmode: add chainmask hacking for eagle band 2 |
| 5 | 4T5R |
developer | 1bc2ce2 | 2023-03-25 00:47:41 +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 | de9ecce | 2023-05-22 11:17:16 +0800 | [diff] [blame] | 13 | index 6d7cdbd5..0d4d9138 100644 |
developer | 1bc2ce2 | 2023-03-25 00:47:41 +0800 | [diff] [blame] | 14 | --- a/mt7996/testmode.c |
| 15 | +++ b/mt7996/testmode.c |
developer | de9ecce | 2023-05-22 11:17:16 +0800 | [diff] [blame] | 16 | @@ -463,6 +463,7 @@ mt7996_tm_set_params(struct mt76_phy *mphy, struct nlattr **tb, |
developer | 1bc2ce2 | 2023-03-25 00:47:41 +0800 | [diff] [blame] | 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 | de9ecce | 2023-05-22 11:17:16 +0800 | [diff] [blame] | 25 | 2.39.2 |
developer | 1bc2ce2 | 2023-03-25 00:47:41 +0800 | [diff] [blame] | 26 | |