blob: 120d25a01735d9a45afa2926eabfd88010a0d4d0 [file] [log] [blame]
developerd0c89452024-10-11 16:53:27 +08001From ce78d5c76700d61fa752c2ac34e53c87ed88f37d Mon Sep 17 00:00:00 2001
developer05f3b2b2024-08-19 19:17:34 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 9 May 2024 11:16:10 +0800
developerd0c89452024-10-11 16:53:27 +08004Subject: [PATCH 117/223] mtk: mt76: mt7996: add max mpdu len capability
developer05f3b2b2024-08-19 19:17:34 +08005
6Set max mpdu len to 11454 according to hardware capability.
7Without this patch, the max ampdu length would be 3895 and hurt performance.
8
developerd0c89452024-10-11 16:53:27 +08009Change-Id: I78048302f18280078c7024b7670277fefe4e5165
developer05f3b2b2024-08-19 19:17:34 +080010Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
11---
12 mt7996/init.c | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/mt7996/init.c b/mt7996/init.c
developerd0c89452024-10-11 16:53:27 +080016index c8eb7523..e674361a 100644
developer05f3b2b2024-08-19 19:17:34 +080017--- a/mt7996/init.c
18+++ b/mt7996/init.c
developerd0c89452024-10-11 16:53:27 +080019@@ -1539,7 +1539,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band,
developer05f3b2b2024-08-19 19:17:34 +080020
21 eht_cap_elem->mac_cap_info[0] =
22 IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS |
23- IEEE80211_EHT_MAC_CAP0_OM_CONTROL;
24+ IEEE80211_EHT_MAC_CAP0_OM_CONTROL |
25+ u8_encode_bits(IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454,
26+ IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK);
27
28 eht_cap_elem->phy_cap_info[0] =
29 IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI |
30--
developerd0c89452024-10-11 16:53:27 +0800312.45.2
developer05f3b2b2024-08-19 19:17:34 +080032