blob: 36cbb69cfbb036fb12c9dda3c656d2625971242b [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From 77894f28fb40126d8ffa927787e4258cac597191 Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 9 May 2024 11:16:10 +0800
4Subject: [PATCH 129/199] mtk: mt76: mt7996: add max mpdu len capability
5
6Set max mpdu len to 11454 according to hardware capability.
7Without this patch, the max ampdu length would be 3895 and hurt performance.
8
9Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt7996/init.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/mt7996/init.c b/mt7996/init.c
15index 2e624def..6e20a174 100644
16--- a/mt7996/init.c
17+++ b/mt7996/init.c
18@@ -1519,7 +1519,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band,
19
20 eht_cap_elem->mac_cap_info[0] =
21 IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS |
22- IEEE80211_EHT_MAC_CAP0_OM_CONTROL;
23+ IEEE80211_EHT_MAC_CAP0_OM_CONTROL |
24+ u8_encode_bits(IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454,
25+ IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK);
26
27 eht_cap_elem->phy_cap_info[0] =
28 IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI |
29--
302.18.0
31