Skip to content

Commit 3628299

Browse files
committed
wifi: mt76: mt7996: fix ldpc setting
JIRA: https://issues.redhat.com/browse/RHEL-79791 commit da8352d Author: Peter Chiu <chui-hao.chiu@mediatek.com> Date: Tue Jan 14 18:10:24 2025 +0800 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 <chui-hao.chiu@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Link: https://patch.msgid.link/20250114101026.3587702-7-shayne.chen@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 211b62b commit 3628299

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)