wifi: mt76: mt7916: fix regression in .sta_state migration

- initialize and use per-sta wcid entry instead of vif wcid
- set wcid flags for 4addr/offload
- fix 'newly' argument for vif sta entry update

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2024-08-21 16:51:03 +02:00
parent 3cd1c17402
commit a5e630ef45
4 changed files with 29 additions and 47 deletions
-16
View File
@@ -1270,22 +1270,6 @@ mtxq_to_txq(struct mt76_txq *mtxq)
return container_of(ptr, struct ieee80211_txq, drv_priv);
}
static inline void
mt76_sta_set_txq_wcid(struct ieee80211_sta *sta, int idx)
{
int i;
for (i = 0; i < ARRAY_SIZE(sta->txq); i++) {
struct mt76_txq *mtxq;
if (!sta->txq[i])
continue;
mtxq = (struct mt76_txq *)sta->txq[i]->drv_priv;
mtxq->wcid = idx;
}
}
static inline struct ieee80211_sta *
wcid_to_sta(struct mt76_wcid *wcid)
{