mac80211 also reports an IPv6 address change of a station interface that is down, whose drv_priv ieee80211_do_stop() cleared. For an interface without MLO, __mt7925_ipv6_addr_change() then queues the ND offload addresses for bss_idx 0, which can be the BSS of another interface. Skip the update while the interface is not added to the driver. Fixes: 9f8f587cab69 ("wifi: mt76: mt7925: add link handling in the mt7925_ipv6_addr_change") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7925/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/main.c b/drivers/net/wireless/mediatek/mt76/mt7925/main.c index b88d92f9aaf2..0e26bfa75143 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7925/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7925/main.c @@ -2081,6 +2081,9 @@ static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw, struct ieee80211_bss_conf *bss_conf; int i; + if (!mvif->phy) + return; + for_each_set_bit(i, &valid, IEEE80211_MLD_MAX_NUM_LINKS) { bss_conf = mt792x_vif_to_bss_conf(vif, i); __mt7925_ipv6_addr_change(hw, bss_conf, idev); -- 2.47.3