developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 1 | From ab265243158a3d44bd5c0a55d0e92bd6decbb3e2 Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Wed, 20 Mar 2024 22:56:44 +0800 |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 103/223] mtk: mt76: mt7996: tmp disable VOW |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | |
| 6 | FW will return failed when legacy 5G station connects after legacy 2G |
| 7 | station, need to check. |
| 8 | |
| 9 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 10 | --- |
| 11 | mt7996/mcu.c | 6 +++++- |
| 12 | 1 file changed, 5 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/mt7996/mcu.c b/mt7996/mcu.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 15 | index 48837d41..54b0272c 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 16 | --- a/mt7996/mcu.c |
| 17 | +++ b/mt7996/mcu.c |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 18 | @@ -2374,6 +2374,7 @@ int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 19 | 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) |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 26 | @@ -2407,6 +2408,7 @@ mt7996_mcu_sta_init_vow(struct mt7996_bss_conf *mconf, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 27 | |
| 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, |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 34 | @@ -2416,7 +2418,7 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_bss_conf *conf, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 35 | struct ieee80211_vif *vif = conf->vif; |
| 36 | struct sk_buff *skb; |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 37 | int conn_state; |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 38 | - int ret; |
| 39 | + // int ret; |
| 40 | |
| 41 | skb = __mt76_connac_mcu_alloc_sta_req(&dev->mt76, &mconf->mt76, |
| 42 | &mlink->wcid, |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 43 | @@ -2463,11 +2465,13 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_bss_conf *conf, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 44 | 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 | -- |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame^] | 58 | 2.45.2 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 59 | |