mt76: mt7996: add missing null pointer check

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2025-08-15 11:10:53 +02:00
parent 5f61f34087
commit d729307b5e
+1 -1
View File
@@ -1719,7 +1719,7 @@ mt7996_update_vif_beacon(void *priv, u8 *mac, struct ieee80211_vif *vif)
struct mt7996_vif_link *link;
link = mt7996_vif_link(dev, vif, link_id);
if (link->phy != phy)
if (!link || link->phy != phy)
continue;
mt7996_mcu_add_beacon(dev->mt76.hw, vif, link_conf);