blob: 52e5e75bdb8bd7e0e5ea252a93d9aa248f3eec6a [file] [log] [blame]
developer27b55252022-09-05 19:09:45 +08001From f5924783a8130cf8f53613ffaec44a1e116dae3f Mon Sep 17 00:00:00 2001
developer1eeb8e82022-05-03 14:10:10 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Sun, 24 Apr 2022 10:07:00 +0800
developer27b55252022-09-05 19:09:45 +08004Subject: [PATCH 1113/1121] mt76: mt7915: init rssi in WTBL when add station
developer1eeb8e82022-05-03 14:10:10 +08005
6---
developer27b55252022-09-05 19:09:45 +08007 mt7915/main.c | 4 ++++
developer1eeb8e82022-05-03 14:10:10 +08008 1 file changed, 4 insertions(+)
9
10diff --git a/mt7915/main.c b/mt7915/main.c
developer27b55252022-09-05 19:09:45 +080011index b5c3c14..551e909 100644
developer1eeb8e82022-05-03 14:10:10 +080012--- a/mt7915/main.c
13+++ b/mt7915/main.c
developeraace7f52022-06-24 13:40:42 +080014@@ -666,6 +666,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developer1eeb8e82022-05-03 14:10:10 +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)
developeraace7f52022-06-24 13:40:42 +080022@@ -687,6 +688,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
developer1eeb8e82022-05-03 14:10:10 +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--
developer27b55252022-09-05 19:09:45 +0800332.18.0
developer1eeb8e82022-05-03 14:10:10 +080034