diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index e8a6a8bab992..af4bd06e408b 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -9736,6 +9736,7 @@ struct cfg80211_mlo_reconf_done_data { u16 added_links; struct { struct cfg80211_bss *bss; + u8 *addr; } links[IEEE80211_MLD_MAX_NUM_LINKS]; }; diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 93a68263ac2f..f27540f7cfd7 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -1354,6 +1354,10 @@ void cfg80211_mlo_reconf_add_done(struct net_device *dev, if (data->added_links & BIT(link_id)) { wdev->links[link_id].client.current_bss = bss_from_pub(bss); + + memcpy(wdev->links[link_id].addr, + data->links[link_id].addr, + ETH_ALEN); } else { cfg80211_unhold_bss(bss_from_pub(bss)); cfg80211_put_bss(wiphy, bss);