mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: initialize more wcid fields mt76_wcid_init
Reduces code duplication and ensures that the phy index is always set. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-3
@@ -225,9 +225,7 @@ static int mt7615_add_interface(struct ieee80211_hw *hw,
|
||||
|
||||
INIT_LIST_HEAD(&mvif->sta.wcid.poll_list);
|
||||
mvif->sta.wcid.idx = idx;
|
||||
mvif->sta.wcid.phy_idx = mvif->mt76.band_idx;
|
||||
mvif->sta.wcid.hw_key_idx = -1;
|
||||
mt76_wcid_init(&mvif->sta.wcid);
|
||||
mt76_wcid_init(&mvif->sta.wcid, mvif->mt76.band_idx);
|
||||
|
||||
mt7615_mac_wtbl_update(dev, idx,
|
||||
MT_WTBL_UPDATE_ADM_COUNT_CLEAR);
|
||||
|
||||
Reference in New Issue
Block a user