developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 1 | From 8f88d7ea931cb3fcc12f609598f8997e66051bff Mon Sep 17 00:00:00 2001 |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Mon, 13 Nov 2023 20:15:39 +0800 |
developer | a46f613 | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 4 | Subject: [PATCH 04/17] mtk: wifi: mt76: mt7996: set RCPI value in rate control |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 5 | command |
| 6 | |
| 7 | Set RCPI values in mt7996_mcu_sta_rate_ctrl_tlv(), which can make the |
| 8 | FW rate control be initialized with a better MCS selection table. |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 9 | |
| 10 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 11 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 12 | --- |
| 13 | mt7996/mcu.c | 3 +++ |
| 14 | 1 file changed, 3 insertions(+) |
| 15 | |
| 16 | diff --git a/mt7996/mcu.c b/mt7996/mcu.c |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 17 | index 7f412d6c..0f1905f2 100644 |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 18 | --- a/mt7996/mcu.c |
| 19 | +++ b/mt7996/mcu.c |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 20 | @@ -1968,6 +1968,7 @@ static void |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 21 | mt7996_mcu_sta_rate_ctrl_tlv(struct sk_buff *skb, struct mt7996_dev *dev, |
| 22 | struct ieee80211_vif *vif, struct ieee80211_sta *sta) |
| 23 | { |
| 24 | +#define INIT_RCPI 180 |
| 25 | struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv; |
| 26 | struct mt76_phy *mphy = mvif->phy->mt76; |
| 27 | struct cfg80211_chan_def *chandef = &mphy->chandef; |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 28 | @@ -2065,6 +2066,8 @@ mt7996_mcu_sta_rate_ctrl_tlv(struct sk_buff *skb, struct mt7996_dev *dev, |
developer | 1a17367 | 2023-12-21 14:49:33 +0800 | [diff] [blame] | 29 | IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP); |
| 30 | } |
| 31 | ra->sta_cap = cpu_to_le32(cap); |
| 32 | + |
| 33 | + memset(ra->rx_rcpi, INIT_RCPI, sizeof(ra->rx_rcpi)); |
| 34 | } |
| 35 | |
| 36 | int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev, struct ieee80211_vif *vif, |
| 37 | -- |
| 38 | 2.18.0 |
| 39 | |