mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: Fix deflink lookup adding links
Do not set vif deflink in mt7996_vif_link_add routine if the vif txq
pointer is NULL in order to not miss the mtxq wcid field update adding
a new link with a valid vif txq pointer.
Fixes: b25fd88d7133d ("wifi: mt76: mt7996: Set mtxq->wcid just for primary link")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/20260306-mt7996-deflink-lookup-link-remove-v1-3-7162b332873c@kernel.org
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
754e3af4d1
commit
42964c80d2
+3
-6
@@ -364,15 +364,12 @@ int mt7996_vif_link_add(struct mt76_phy *mphy, struct ieee80211_vif *vif,
|
||||
|
||||
ieee80211_iter_keys(mphy->hw, vif, mt7996_key_iter, &it);
|
||||
|
||||
if (!mlink->wcid->offchannel &&
|
||||
if (vif->txq && !mlink->wcid->offchannel &&
|
||||
mvif->mt76.deflink_id == IEEE80211_LINK_UNSPECIFIED) {
|
||||
if (vif->txq) {
|
||||
struct mt76_txq *mtxq;
|
||||
struct mt76_txq *mtxq = (struct mt76_txq *)vif->txq->drv_priv;
|
||||
|
||||
mtxq = (struct mt76_txq *)vif->txq->drv_priv;
|
||||
mtxq->wcid = idx;
|
||||
}
|
||||
mvif->mt76.deflink_id = link_conf->link_id;
|
||||
mtxq->wcid = idx;
|
||||
}
|
||||
|
||||
if (vif->type == NL80211_IFTYPE_STATION) {
|
||||
|
||||
Reference in New Issue
Block a user