blob: 6682f9b515e1640bb8059bc28ec8ce3470e25c9d [file] [log] [blame]
developerd0c89452024-10-11 16:53:27 +08001From ab265243158a3d44bd5c0a55d0e92bd6decbb3e2 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Wed, 20 Mar 2024 22:56:44 +0800
developerd0c89452024-10-11 16:53:27 +08004Subject: [PATCH 103/223] mtk: mt76: mt7996: tmp disable VOW
developer66e89bc2024-04-23 14:50:01 +08005
6FW will return failed when legacy 5G station connects after legacy 2G
7station, need to check.
8
9Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
10---
11 mt7996/mcu.c | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
13
14diff --git a/mt7996/mcu.c b/mt7996/mcu.c
developerd0c89452024-10-11 16:53:27 +080015index 48837d41..54b0272c 100644
developer66e89bc2024-04-23 14:50:01 +080016--- a/mt7996/mcu.c
17+++ b/mt7996/mcu.c
developerd0c89452024-10-11 16:53:27 +080018@@ -2374,6 +2374,7 @@ int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev,
developer66e89bc2024-04-23 14:50:01 +080019 return mt7996_mcu_add_rate_ctrl_fixed(dev, conf, mconf, link_sta, mlink);
20 }
21
22+#if 0
23 static int
24 mt7996_mcu_sta_init_vow(struct mt7996_bss_conf *mconf,
25 struct mt7996_link_sta *mlink)
developerd0c89452024-10-11 16:53:27 +080026@@ -2407,6 +2408,7 @@ mt7996_mcu_sta_init_vow(struct mt7996_bss_conf *mconf,
developer66e89bc2024-04-23 14:50:01 +080027
28 return mt7996_mcu_set_vow_drr_ctrl(phy, mconf, mlink, VOW_DRR_CTRL_STA_ALL);
29 }
30+#endif
31
32 int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_bss_conf *conf,
33 struct mt7996_bss_conf *mconf,
developerd0c89452024-10-11 16:53:27 +080034@@ -2416,7 +2418,7 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_bss_conf *conf,
developer66e89bc2024-04-23 14:50:01 +080035 struct ieee80211_vif *vif = conf->vif;
36 struct sk_buff *skb;
developerd0c89452024-10-11 16:53:27 +080037 int conn_state;
developer66e89bc2024-04-23 14:50:01 +080038- int ret;
39+ // int ret;
40
41 skb = __mt76_connac_mcu_alloc_sta_req(&dev->mt76, &mconf->mt76,
42 &mlink->wcid,
developerd0c89452024-10-11 16:53:27 +080043@@ -2463,11 +2465,13 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_bss_conf *conf,
developer66e89bc2024-04-23 14:50:01 +080044 mt7996_mcu_sta_bfee_tlv(dev, skb, conf, mconf, link_sta);
45 }
46
47+#if 0
48 ret = mt7996_mcu_sta_init_vow(mconf, mlink);
49 if (ret) {
50 dev_kfree_skb(skb);
51 return ret;
52 }
53+#endif
54 out:
55 return mt76_mcu_skb_send_msg(&dev->mt76, skb,
56 MCU_WMWA_UNI_CMD(STA_REC_UPDATE), true);
57--
developerd0c89452024-10-11 16:53:27 +0800582.45.2
developer66e89bc2024-04-23 14:50:01 +080059