blob: 33c78b602bd9bd838a9f9f0a8c039e0d94752035 [file] [log] [blame]
developerebda9012024-02-22 13:42:45 +08001From aa6060100ddbf2bad579b2765e34740ea70f8752 Mon Sep 17 00:00:00 2001
developere35b8e42023-10-16 11:04:00 +08002From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Tue, 5 Sep 2023 17:31:49 +0800
developerebda9012024-02-22 13:42:45 +08004Subject: [PATCH 03/15] mtk: wifi: mt76: mt7996: disable rx header translation
developerd243af02023-12-21 14:49:33 +08005 for BMC entry
developere35b8e42023-10-16 11:04:00 +08006
7Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
developere35b8e42023-10-16 11:04:00 +08008---
9 mt7996/mcu.c | 9 +++++----
10 1 file changed, 5 insertions(+), 4 deletions(-)
11
12diff --git a/mt7996/mcu.c b/mt7996/mcu.c
developerebda9012024-02-22 13:42:45 +080013index 1356ac14..7f412d6c 100644
developere35b8e42023-10-16 11:04:00 +080014--- a/mt7996/mcu.c
15+++ b/mt7996/mcu.c
developerebda9012024-02-22 13:42:45 +080016@@ -1778,10 +1778,10 @@ mt7996_mcu_sta_hdr_trans_tlv(struct mt7996_dev *dev, struct sk_buff *skb,
developere35b8e42023-10-16 11:04:00 +080017 else
18 hdr_trans->from_ds = true;
19
20- wcid = (struct mt76_wcid *)sta->drv_priv;
21- if (!wcid)
22+ if (!sta)
23 return;
24
25+ wcid = (struct mt76_wcid *)sta->drv_priv;
26 hdr_trans->dis_rx_hdr_tran = !test_bit(MT_WCID_FLAG_HDR_TRANS, &wcid->flags);
27 if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) {
28 hdr_trans->to_ds = true;
developerebda9012024-02-22 13:42:45 +080029@@ -2154,6 +2154,9 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_vif *vif,
developere35b8e42023-10-16 11:04:00 +080030 if (!enable)
31 goto out;
32
33+ /* starec hdr trans */
34+ mt7996_mcu_sta_hdr_trans_tlv(dev, skb, vif, sta);
35+
36 /* tag order is in accordance with firmware dependency. */
37 if (sta) {
developerd243af02023-12-21 14:49:33 +080038 /* starec hdrt mode */
developerebda9012024-02-22 13:42:45 +080039@@ -2178,8 +2181,6 @@ int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_vif *vif,
developere35b8e42023-10-16 11:04:00 +080040 mt7996_mcu_sta_muru_tlv(dev, skb, vif, sta);
41 /* starec bfee */
42 mt7996_mcu_sta_bfee_tlv(dev, skb, vif, sta);
43- /* starec hdr trans */
44- mt7996_mcu_sta_hdr_trans_tlv(dev, skb, vif, sta);
45 }
46
47 ret = mt7996_mcu_add_group(dev, vif, sta);
48--
492.18.0
50