FROMGIT: wifi: cfg80211: Update the link address when a link is added

When links are added, update the wireless device link addresses based
on the information provided by the driver.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250308225541.d694a9125aba.I79b010ea9aab47893e4f22c266362fde30b7f9ac@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Bug: 404394488
(cherry picked from commit e16caea70610ed4226034dfcdaa5c43b36ff9e0a
 git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git
 main)
Change-Id: If6fbafad1748274e30e982fee520518bd87d585f
Signed-off-by: Kavita Kavita <quic_kkavita@quicinc.com>
This commit is contained in:
Ilan Peer
2025-03-08 23:03:37 +02:00
committed by Quentin Perret
parent b007708642
commit 776f1de729
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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];
};
+4
View File
@@ -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);