We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8f4a5 commit 35ad47cCopy full SHA for 35ad47c
drivers/net/wireless/mediatek/mt76/mt7925/main.c
@@ -1603,6 +1603,9 @@ static void mt7925_sta_set_decap_offload(struct ieee80211_hw *hw,
1603
unsigned long valid = mvif->valid_links;
1604
u8 i;
1605
1606
+ if (!msta->vif)
1607
+ return;
1608
+
1609
mt792x_mutex_acquire(dev);
1610
1611
valid = ieee80211_vif_is_mld(vif) ? mvif->valid_links : BIT(0);
@@ -1617,6 +1620,9 @@ static void mt7925_sta_set_decap_offload(struct ieee80211_hw *hw,
1617
1620
else
1618
1621
clear_bit(MT_WCID_FLAG_HDR_TRANS, &mlink->wcid.flags);
1619
1622
1623
+ if (!mlink->wcid.sta)
1624
+ continue;
1625
1626
mt7925_mcu_wtbl_update_hdr_trans(dev, vif, sta, i);
1627
}
1628
0 commit comments