developer | d59e477 | 2022-07-14 13:48:49 +0800 | [diff] [blame] | 1 | From 378d2227566d0f3d60cd9b59d91e5b13153653e5 Mon Sep 17 00:00:00 2001 |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Sun, 24 Apr 2022 10:07:00 +0800 |
developer | d59e477 | 2022-07-14 13:48:49 +0800 | [diff] [blame] | 4 | Subject: [PATCH 1112/1119] mt76: mt7915: init rssi in WTBL when add station |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 5 | |
| 6 | --- |
developer | d59e477 | 2022-07-14 13:48:49 +0800 | [diff] [blame] | 7 | drivers/net/wireless/mediatek/mt76/mt7915/main.c | 4 ++++ |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 8 | 1 file changed, 4 insertions(+) |
| 9 | |
| 10 | diff --git a/mt7915/main.c b/mt7915/main.c |
developer | d59e477 | 2022-07-14 13:48:49 +0800 | [diff] [blame] | 11 | index dd0b3cc2..06658aed 100644 |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 12 | --- a/mt7915/main.c |
| 13 | +++ b/mt7915/main.c |
developer | 4721e25 | 2022-06-21 16:41:28 +0800 | [diff] [blame] | 14 | @@ -666,6 +666,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 15 | 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) |
developer | 4721e25 | 2022-06-21 16:41:28 +0800 | [diff] [blame] | 22 | @@ -687,6 +688,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 23 | 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 | -- |
developer | d59e477 | 2022-07-14 13:48:49 +0800 | [diff] [blame] | 33 | 2.25.1 |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 34 | |