Skip to content

Commit 9b651ae

Browse files
michaello316nbd168
authored andcommitted
wifi: mt76: mt7925: ensure the 6GHz A-MPDU density cap from the hardware.
Set the 6GHz HE A-MPDU density from the hardware capability instead of a hardcoded value, ensuring accurate capability reporting. Signed-off-by: Michael Lo <michael.lo@mediatek.com> Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com> Link: https://patch.msgid.link/20251106092151.1061648-1-mingyen.hsieh@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 274c036 commit 9b651ae

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • drivers/net/wireless/mediatek/mt76/mt7925

drivers/net/wireless/mediatek/mt76/mt7925/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,14 @@ mt7925_init_he_caps(struct mt792x_phy *phy, enum nl80211_band band,
139139
}
140140

141141
if (band == NL80211_BAND_6GHZ) {
142+
struct ieee80211_supported_band *sband =
143+
&phy->mt76->sband_5g.sband;
144+
struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap;
145+
142146
u16 cap = IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
143147
IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS;
144148

145-
cap |= u16_encode_bits(IEEE80211_HT_MPDU_DENSITY_0_5,
149+
cap |= u16_encode_bits(ht_cap->ampdu_density,
146150
IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START) |
147151
u16_encode_bits(IEEE80211_VHT_MAX_AMPDU_1024K,
148152
IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP) |

0 commit comments

Comments
 (0)