developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From ce5a75d5fb6414c0ccc0c461f0ff2bb09501275e Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 19 Jul 2024 11:50:21 +0800 |
| 4 | Subject: [PATCH 008/199] mtk: mt76: mt7996: set station's wmm index to 3 |
| 5 | |
| 6 | According to HW design, the AP's WMM index is 0 and the station's wmm |
| 7 | index is 3. |
| 8 | |
| 9 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 10 | --- |
| 11 | mt7996/main.c | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/mt7996/main.c b/mt7996/main.c |
| 15 | index 15d880ef..2b094b33 100644 |
| 16 | --- a/mt7996/main.c |
| 17 | +++ b/mt7996/main.c |
| 18 | @@ -206,7 +206,7 @@ static int mt7996_add_interface(struct ieee80211_hw *hw, |
| 19 | mvif->mt76.omac_idx = idx; |
| 20 | mvif->phy = phy; |
| 21 | mvif->mt76.band_idx = band_idx; |
| 22 | - mvif->mt76.wmm_idx = vif->type != NL80211_IFTYPE_AP; |
| 23 | + mvif->mt76.wmm_idx = vif->type == NL80211_IFTYPE_AP ? 0 : 3; |
| 24 | |
| 25 | ret = mt7996_mcu_add_dev_info(phy, vif, true); |
| 26 | if (ret) |
| 27 | -- |
| 28 | 2.18.0 |
| 29 | |