mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: remove dev->wcid_phy_mask
Explicitly check wcid->phy_idx instead. Reduces allocated data size. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1497,8 +1497,6 @@ mt76_sta_add(struct mt76_phy *phy, struct ieee80211_vif *vif,
|
||||
}
|
||||
|
||||
ewma_signal_init(&wcid->rssi);
|
||||
if (phy->band_idx == MT_BAND1)
|
||||
mt76_wcid_mask_set(dev->wcid_phy_mask, wcid->idx);
|
||||
rcu_assign_pointer(dev->wcid[wcid->idx], wcid);
|
||||
phy->num_sta++;
|
||||
|
||||
@@ -1525,7 +1523,6 @@ void __mt76_sta_remove(struct mt76_phy *phy, struct ieee80211_vif *vif,
|
||||
mt76_wcid_cleanup(dev, wcid);
|
||||
|
||||
mt76_wcid_mask_clear(dev->wcid_mask, idx);
|
||||
mt76_wcid_mask_clear(dev->wcid_phy_mask, idx);
|
||||
phy->num_sta--;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__mt76_sta_remove);
|
||||
|
||||
Reference in New Issue
Block a user