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
@@ -66,11 +66,9 @@ mt7603_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
|
||||
|
||||
idx = MT7603_WTBL_RESERVED - 1 - mvif->idx;
|
||||
dev->mt76.vif_mask |= BIT_ULL(mvif->idx);
|
||||
INIT_LIST_HEAD(&mvif->sta.wcid.poll_list);
|
||||
mvif->sta.wcid.idx = idx;
|
||||
mvif->sta.wcid.hw_key_idx = -1;
|
||||
mvif->sta.vif = mvif;
|
||||
mt76_wcid_init(&mvif->sta.wcid);
|
||||
mt76_wcid_init(&mvif->sta.wcid, 0);
|
||||
|
||||
eth_broadcast_addr(bc_addr);
|
||||
mt7603_wtbl_init(dev, idx, mvif->idx, bc_addr);
|
||||
|
||||
Reference in New Issue
Block a user