blob: 523648a3385e9af47868fd0c94797b2ec20b8649 [file] [log] [blame]
developerf64861f2022-06-22 11:44:53 +08001From ca953d62563e4084e1ea3b81882934e27711ed26 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
developerbd398d52022-06-06 20:53:24 +08004Subject: [PATCH 1112/1115] mt76: mt7915: init rssi in WTBL when add station
developer1d16a302022-04-28 16:35:54 +08005
6---
developerf64861f2022-06-22 11:44:53 +08007 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++
developer1d16a302022-04-28 16:35:54 +08008 1 file changed, 4 insertions(+)
9
10diff --git a/mt7915/main.c b/mt7915/main.c
developerf64861f2022-06-22 11:44:53 +080011index 41bc2c30..5f3e2c2d 100644
developer1d16a302022-04-28 16:35:54 +080012--- a/mt7915/main.c
13+++ b/mt7915/main.c
developerf64861f2022-06-22 11:44:53 +080014@@ -662,6 +662,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developer1d16a302022-04-28 16:35:54 +080015 struct mt7915_phy *phy;
16 #endif
17 int ret, idx;
18+ u32 addr;
19
20 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7915_WTBL_STA);
21 if (idx < 0)
developerf64861f2022-06-22 11:44:53 +080022@@ -683,6 +684,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developer1d16a302022-04-28 16:35:54 +080023 if (ret)
24 return ret;
25
26+ addr = mt7915_mac_wtbl_lmac_addr(dev, msta->wcid.idx, 30);
27+ mt76_rmw_field(dev, addr, GENMASK(7, 0), 0xa0);
28+
29 #ifdef CONFIG_MTK_VENDOR
30 mt7915_vendor_amnt_sta_remove(mvif->phy, sta);
31 #endif
32--
developerf64861f2022-06-22 11:44:53 +0800332.25.1
developer1d16a302022-04-28 16:35:54 +080034