developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 1 | From ce78d5c76700d61fa752c2ac34e53c87ed88f37d Mon Sep 17 00:00:00 2001 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Thu, 9 May 2024 11:16:10 +0800 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 117/223] mtk: mt76: mt7996: add max mpdu len capability |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 5 | |
| 6 | Set max mpdu len to 11454 according to hardware capability. |
| 7 | Without this patch, the max ampdu length would be 3895 and hurt performance. |
| 8 | |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 9 | Change-Id: I78048302f18280078c7024b7670277fefe4e5165 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 10 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 11 | --- |
| 12 | mt7996/init.c | 4 +++- |
| 13 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/mt7996/init.c b/mt7996/init.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 16 | index c8eb7523..e674361a 100644 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 17 | --- a/mt7996/init.c |
| 18 | +++ b/mt7996/init.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 19 | @@ -1539,7 +1539,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band, |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 20 | |
| 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 | -- |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 31 | 2.45.2 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 32 | |