mt76: move wcid rssi ewma init to mt76 core

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2019-01-11 15:24:32 +01:00
parent 8167074dab
commit 2ad54b2f25
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -660,6 +660,7 @@ mt76_sta_add(struct mt76_dev *dev, struct ieee80211_vif *vif,
mt76_txq_init(dev, sta->txq[i]);
}
ewma_signal_init(&wcid->rssi);
rcu_assign_pointer(dev->wcid[wcid->idx], wcid);
out:
-2
View File
@@ -191,8 +191,6 @@ int mt76x02_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
if (vif->type == NL80211_IFTYPE_AP)
set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags);
ewma_signal_init(&msta->wcid.rssi);
return 0;
}
EXPORT_SYMBOL_GPL(mt76x02_sta_add);