blob: 07d3c69898e5030b5ed78061200b3f0afc6b5f33 [file] [log] [blame]
developer753619c2024-02-22 13:42:45 +08001From 58e8fc82df44c6debbafcb5237315aac0d131549 Mon Sep 17 00:00:00 2001
developere2cfb522022-12-08 18:09:45 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Sun, 24 Apr 2022 10:07:00 +0800
developer753619c2024-02-22 13:42:45 +08004Subject: [PATCH 1014/1048] wifi: mt76: mt7915: init rssi in WTBL when add
5 station
developere2cfb522022-12-08 18:09:45 +08006
7---
8 mt7915/main.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/mt7915/main.c b/mt7915/main.c
developer753619c2024-02-22 13:42:45 +080012index d4d5a93..0a3e8e0 100644
developere2cfb522022-12-08 18:09:45 +080013--- a/mt7915/main.c
14+++ b/mt7915/main.c
developer753619c2024-02-22 13:42:45 +080015@@ -783,6 +783,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developerd8126d12023-02-17 11:50:45 +080016 struct mt7915_phy *phy = ext_phy ? mt7915_ext_phy(dev) : &dev->phy;
developere2cfb522022-12-08 18:09:45 +080017 #endif
18 int ret, idx;
19+ u32 addr;
20
21 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7915_WTBL_STA);
22 if (idx < 0)
developer753619c2024-02-22 13:42:45 +080023@@ -807,6 +808,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developere2cfb522022-12-08 18:09:45 +080024 if (ret)
25 return ret;
26
27+ addr = mt7915_mac_wtbl_lmac_addr(dev, msta->wcid.idx, 30);
28+ mt76_rmw_field(dev, addr, GENMASK(7, 0), 0xa0);
29+
30 #ifdef CONFIG_MTK_VENDOR
31 mt7915_vendor_amnt_sta_remove(mvif->phy, sta);
32 #endif
33--
developerbd9fa1e2023-10-16 11:04:00 +0800342.18.0
developere2cfb522022-12-08 18:09:45 +080035