developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 1 | From 8e8a814bc421411bcfe636f81a35e0993b4e6281 Mon Sep 17 00:00:00 2001 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Wed, 28 Aug 2024 13:58:30 +0800 |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 187/193] mtk: mt76: mt7996: fix ldpc setting |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 5 | |
| 6 | The non-AP interfaces would not update conf->vht_ldpc so they never set |
| 7 | STA_CAP_VHT_LDPC even if peer-station support LDPC. |
| 8 | Check conf->vht_ldpc only if it is using AP interface. |
| 9 | |
| 10 | Without this patch, station only uses BCC to transmit packet in VHT mode. |
| 11 | |
| 12 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 13 | Change-Id: I00574c95a8cded18a3272e5aa27582ab4d618899 |
| 14 | --- |
| 15 | mt7996/mcu.c | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/mt7996/mcu.c b/mt7996/mcu.c |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 19 | index dce180f..6d4765b 100644 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 20 | --- a/mt7996/mcu.c |
| 21 | +++ b/mt7996/mcu.c |
| 22 | @@ -2994,7 +2994,7 @@ mt7996_mcu_sta_rate_ctrl_tlv(struct sk_buff *skb, struct mt7996_dev *dev, |
| 23 | cap |= STA_CAP_VHT_TX_STBC; |
| 24 | if (link_sta->vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_1) |
| 25 | cap |= STA_CAP_VHT_RX_STBC; |
| 26 | - if (conf->vht_ldpc && |
| 27 | + if ((conf->vif->type != NL80211_IFTYPE_AP || conf->vht_ldpc) && |
| 28 | (link_sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC)) |
| 29 | cap |= STA_CAP_VHT_LDPC; |
| 30 | |
| 31 | -- |
| 32 | 2.45.2 |
| 33 | |