Skip to content

Commit da8352d

Browse files
Peter Chiunbd168
authored andcommitted
wifi: mt76: mt7996: fix ldpc setting
The non-AP interfaces would not use conf->vht_ldpc so they never set STA_CAP_VHT_LDPC even if peer-station support LDPC. Check conf->vht_ldpc only for AP interface. Without this patch, station only uses BCC to transmit packet in VHT mode. Fixes: dda423d ("wifi: mt76: mt7996: remove mt7996_mcu_beacon_check_caps()") 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 14749fe commit da8352d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,7 @@ mt7996_mcu_sta_rate_ctrl_tlv(struct sk_buff *skb, struct mt7996_dev *dev,
20662066
cap |= STA_CAP_VHT_TX_STBC;
20672067
if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_1)
20682068
cap |= STA_CAP_VHT_RX_STBC;
2069-
if (vif->bss_conf.vht_ldpc &&
2069+
if ((vif->type != NL80211_IFTYPE_AP || vif->bss_conf.vht_ldpc) &&
20702070
(sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC))
20712071
cap |= STA_CAP_VHT_LDPC;
20722072

0 commit comments

Comments
 (0)