blob: 120d25a01735d9a45afa2926eabfd88010a0d4d0 [file] [log] [blame]
From ce78d5c76700d61fa752c2ac34e53c87ed88f37d Mon Sep 17 00:00:00 2001
From: Peter Chiu <chui-hao.chiu@mediatek.com>
Date: Thu, 9 May 2024 11:16:10 +0800
Subject: [PATCH 117/223] mtk: mt76: mt7996: add max mpdu len capability
Set max mpdu len to 11454 according to hardware capability.
Without this patch, the max ampdu length would be 3895 and hurt performance.
Change-Id: I78048302f18280078c7024b7670277fefe4e5165
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
---
mt7996/init.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mt7996/init.c b/mt7996/init.c
index c8eb7523..e674361a 100644
--- a/mt7996/init.c
+++ b/mt7996/init.c
@@ -1539,7 +1539,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band,
eht_cap_elem->mac_cap_info[0] =
IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS |
- IEEE80211_EHT_MAC_CAP0_OM_CONTROL;
+ IEEE80211_EHT_MAC_CAP0_OM_CONTROL |
+ u8_encode_bits(IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454,
+ IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK);
eht_cap_elem->phy_cap_info[0] =
IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI |
--
2.45.2