blob: 81739b6e52797922ff7898de7fa26dd7be596129 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From ce5a75d5fb6414c0ccc0c461f0ff2bb09501275e Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 19 Jul 2024 11:50:21 +0800
4Subject: [PATCH 008/199] mtk: mt76: mt7996: set station's wmm index to 3
5
6According to HW design, the AP's WMM index is 0 and the station's wmm
7index is 3.
8
9Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
10---
11 mt7996/main.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/mt7996/main.c b/mt7996/main.c
15index 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--
282.18.0
29