blob: 72ea1928635289681d2c2e4c6fa8e456e150f5cb [file] [log] [blame]
developer2157bf82023-06-26 02:27:49 +08001From dfdfc04bade216097db573acdeab7a0bdb17ed0a Mon Sep 17 00:00:00 2001
developer1d16a302022-04-28 16:35:54 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Sun, 24 Apr 2022 10:07:00 +0800
developer2157bf82023-06-26 02:27:49 +08004Subject: [PATCH 1013/1031] wifi: mt76: mt7915: init rssi in WTBL when add
developerc9233442023-04-04 06:06:17 +08005 station
developer1d16a302022-04-28 16:35:54 +08006
7---
developer071927d2022-08-31 20:39:29 +08008 mt7915/main.c | 4 ++++
developer1d16a302022-04-28 16:35:54 +08009 1 file changed, 4 insertions(+)
10
11diff --git a/mt7915/main.c b/mt7915/main.c
developer2157bf82023-06-26 02:27:49 +080012index bd49b21..70ceb5d 100644
developer1d16a302022-04-28 16:35:54 +080013--- a/mt7915/main.c
14+++ b/mt7915/main.c
developer2157bf82023-06-26 02:27:49 +080015@@ -718,6 +718,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developerfd8e1152023-02-14 11:29:23 +080016 struct mt7915_phy *phy = ext_phy ? mt7915_ext_phy(dev) : &dev->phy;
developer1d16a302022-04-28 16:35:54 +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)
developer2157bf82023-06-26 02:27:49 +080023@@ -742,6 +743,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developer1d16a302022-04-28 16:35:54 +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--
developer2324aa22023-04-12 11:30:15 +0800342.18.0
developer1d16a302022-04-28 16:35:54 +080035