blob: c4ce6b9ed49f496221e15bef8616c6156c4f3dda [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From b35228edc5c705ab5f4dd540f10c153bc2fd6c89 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
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 117/193] 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
developer1f55fcf2024-10-17 14:52:33 +080016index dc06fa8..252712d 100644
developer05f3b2b2024-08-19 19:17:34 +080017--- a/mt7996/init.c
18+++ b/mt7996/init.c
developer1f55fcf2024-10-17 14:52:33 +080019@@ -1536,7 +1536,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