blob: a9f0fad5be1333202a1ca42370dd81f048c12a08 [file] [log] [blame]
developerd0c89452024-10-11 16:53:27 +08001From d46fc9a7335c94d5be16414e8898122d23c74b47 Mon Sep 17 00:00:00 2001
2From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Wed, 4 Sep 2024 13:44:32 +0800
4Subject: [PATCH 192/223] mtk: mt76: mt7996: fix HE Phy capability
5
6Set HE SU PPDU And HE MU PPDU With 4x HE-LTF And 0.8 us GI within HE PHY
7Capabilities element as 1 since hardware can support.
8
9Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
10
11---
12 mt7996/init.c | 6 ++++--
13 1 file changed, 4 insertions(+), 2 deletions(-)
14
15diff --git a/mt7996/init.c b/mt7996/init.c
16index 2db4b3b5..6c8a9b48 100644
17--- a/mt7996/init.c
18+++ b/mt7996/init.c
19@@ -1477,6 +1477,9 @@ mt7996_init_he_caps(struct mt7996_phy *phy, enum nl80211_band band,
20 he_cap_elem->phy_cap_info[2] = IEEE80211_HE_PHY_CAP2_STBC_TX_UNDER_80MHZ |
21 IEEE80211_HE_PHY_CAP2_STBC_RX_UNDER_80MHZ;
22
23+ he_cap_elem->phy_cap_info[7] =
24+ IEEE80211_HE_PHY_CAP7_HE_SU_MU_PPDU_4XLTF_AND_08_US_GI;
25+
26 switch (iftype) {
27 case NL80211_IFTYPE_AP:
28 he_cap_elem->mac_cap_info[0] |= IEEE80211_HE_MAC_CAP0_TWT_RES;
29@@ -1516,8 +1519,7 @@ mt7996_init_he_caps(struct mt7996_phy *phy, enum nl80211_band band,
30 IEEE80211_HE_PHY_CAP6_PARTIAL_BW_EXT_RANGE |
31 IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT;
32 he_cap_elem->phy_cap_info[7] |=
33- IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_SUPP |
34- IEEE80211_HE_PHY_CAP7_HE_SU_MU_PPDU_4XLTF_AND_08_US_GI;
35+ IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_SUPP;
36 he_cap_elem->phy_cap_info[8] |=
37 IEEE80211_HE_PHY_CAP8_20MHZ_IN_40MHZ_HE_PPDU_IN_2G |
38 IEEE80211_HE_PHY_CAP8_20MHZ_IN_160MHZ_HE_PPDU |
39--
402.45.2
41