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