| From c7815914fe507bf9781b064efb6ba7ca33b6f5d1 Mon Sep 17 00:00:00 2001 |
| From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| Date: Sun, 24 Apr 2022 10:07:00 +0800 |
| Subject: [PATCH 1117/1131] mt76: mt7915: init rssi in WTBL when add station |
| 1 file changed, 4 insertions(+) |
| diff --git a/mt7915/main.c b/mt7915/main.c |
| index a347e77..eae1377 100644 |
| @@ -692,6 +692,7 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, |
| idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7915_WTBL_STA); |
| @@ -715,6 +716,9 @@ int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, |
| + addr = mt7915_mac_wtbl_lmac_addr(dev, msta->wcid.idx, 30); |
| + mt76_rmw_field(dev, addr, GENMASK(7, 0), 0xa0); |
| mt7915_vendor_amnt_sta_remove(mvif->phy, sta); |