Skip to content

Commit 1816ad9

Browse files
Peter Chiunbd168
authored andcommitted
wifi: 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 count not get expected performance. Fixes: 348533e ("wifi: mt76: mt7996: add EHT capability init") Signed-off-by: Peter Chiu <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
1 parent 2425dc7 commit 1816ad9

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7996

1 file changed

+3
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band,
13071307

13081308
eht_cap_elem->mac_cap_info[0] =
13091309
IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS |
1310-
IEEE80211_EHT_MAC_CAP0_OM_CONTROL;
1310+
IEEE80211_EHT_MAC_CAP0_OM_CONTROL |
1311+
u8_encode_bits(IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454,
1312+
IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK);
13111313

13121314
eht_cap_elem->phy_cap_info[0] =
13131315
IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI |

0 commit comments

Comments
 (0)