blob: 4e056642282f3dabccd28537756c31d5070a6980 [file] [log] [blame]
developer8eb72a32023-03-30 08:32:07 +08001From 576d54b4dce61e33ad31b8d8266548972ea13049 Mon Sep 17 00:00:00 2001
developer1bc2ce22023-03-25 00:47:41 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Thu, 9 Mar 2023 18:45:04 +0800
developer8eb72a32023-03-30 08:32:07 +08004Subject: [PATCH 28/29] wifi: mt76: testmode: add chainmask hacking for eagle
5 band 2 4T5R
developer1bc2ce22023-03-25 00:47:41 +08006
7Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
8---
9 mt7996/testmode.c | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/mt7996/testmode.c b/mt7996/testmode.c
developer8eb72a32023-03-30 08:32:07 +080013index 5dbbb78..1721251 100644
developer1bc2ce22023-03-25 00:47:41 +080014--- 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--
developer8eb72a32023-03-30 08:32:07 +0800252.18.0
developer1bc2ce22023-03-25 00:47:41 +080026