Skip to content

Commit 2ffbdfc

Browse files
haogrootnbd168
authored andcommitted
wifi: mt76: mt7996: fix the capability of reception of EHT MU PPDU
This commit includes two changes. First, enable "EHT MU PPDU With 4x EHT-LTF And 0.8us GI" in EHT Phy capabilities element since hardware can support. Second, fix the value of "Maximum number of supported EHT LTFs" in the same element, where the previous setting of 3 in Bit 3-4 was incorrect. Fixes: 348533e ("wifi: mt76: mt7996: add EHT capability init") Signed-off-by: Howard Hsu <[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 1816ad9 commit 2ffbdfc

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,21 +1352,20 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band,
13521352
IEEE80211_EHT_PHY_CAP3_CODEBOOK_7_5_MU_FDBK;
13531353

13541354
eht_cap_elem->phy_cap_info[4] =
1355+
IEEE80211_EHT_PHY_CAP4_EHT_MU_PPDU_4_EHT_LTF_08_GI |
13551356
u8_encode_bits(min_t(int, sts - 1, 2),
13561357
IEEE80211_EHT_PHY_CAP4_MAX_NC_MASK);
13571358

13581359
eht_cap_elem->phy_cap_info[5] =
13591360
u8_encode_bits(IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_16US,
13601361
IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_MASK) |
1361-
u8_encode_bits(u8_get_bits(0x11, GENMASK(1, 0)),
1362+
u8_encode_bits(u8_get_bits(1, GENMASK(1, 0)),
13621363
IEEE80211_EHT_PHY_CAP5_MAX_NUM_SUPP_EHT_LTF_MASK);
13631364

13641365
val = width == NL80211_CHAN_WIDTH_320 ? 0xf :
13651366
width == NL80211_CHAN_WIDTH_160 ? 0x7 :
13661367
width == NL80211_CHAN_WIDTH_80 ? 0x3 : 0x1;
13671368
eht_cap_elem->phy_cap_info[6] =
1368-
u8_encode_bits(u8_get_bits(0x11, GENMASK(4, 2)),
1369-
IEEE80211_EHT_PHY_CAP6_MAX_NUM_SUPP_EHT_LTF_MASK) |
13701369
u8_encode_bits(val, IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_MASK);
13711370

13721371
val = u8_encode_bits(nss, IEEE80211_EHT_MCS_NSS_RX) |

0 commit comments

Comments
 (0)