developer | 12a4279 | 2023-07-29 05:30:55 +0800 | [diff] [blame^] | 1 | From 869216c36f2c0edf059c72cd801de5dda22041aa 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 | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 4 | Subject: [PATCH 1014/1034] wifi: mt76: mt7915: init rssi in WTBL when add |
developer | c923344 | 2023-04-04 06:06:17 +0800 | [diff] [blame] | 5 | station |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 6 | |
| 7 | --- |
developer | 071927d | 2022-08-31 20:39:29 +0800 | [diff] [blame] | 8 | mt7915/main.c | 4 ++++ |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 9 | 1 file changed, 4 insertions(+) |
| 10 | |
| 11 | diff --git a/mt7915/main.c b/mt7915/main.c |
developer | 12a4279 | 2023-07-29 05:30:55 +0800 | [diff] [blame^] | 12 | index ee612ef..b4af39d 100644 |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 13 | --- a/mt7915/main.c |
| 14 | +++ b/mt7915/main.c |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 15 | @@ -748,6 +748,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, |
developer | fd8e115 | 2023-02-14 11:29:23 +0800 | [diff] [blame] | 16 | struct mt7915_phy *phy = ext_phy ? mt7915_ext_phy(dev) : &dev->phy; |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 17 | #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) |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 23 | @@ -772,6 +773,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] | 24 | 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 | -- |
developer | 2324aa2 | 2023-04-12 11:30:15 +0800 | [diff] [blame] | 34 | 2.18.0 |
developer | 1d16a30 | 2022-04-28 16:35:54 +0800 | [diff] [blame] | 35 | |