From 189eab64d6c5926be6ca213d70e93f6f7cef6fba Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 15 Jun 2022 11:50:00 +0200 Subject: [PATCH] UPSTREAM: wifi: mac80211: set STA deflink addresses We should set the STA deflink addresses in case no link is really added. Bug: 254441685 Fixes: 046d2e7c50e3 ("mac80211: prepare sta handling for MLO support") Signed-off-by: Johannes Berg (cherry picked from commit 630c7e4621763220d23789fbb036e0cf227e0b22) Signed-off-by: Lee Jones Change-Id: I709a549c3394926c67e003ed4b923dfafd18b4df --- net/mac80211/sta_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 77806b2fd014..95dd20b392a9 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -374,6 +374,8 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, memcpy(sta->addr, addr, ETH_ALEN); memcpy(sta->sta.addr, addr, ETH_ALEN); + memcpy(sta->deflink.addr, addr, ETH_ALEN); + memcpy(sta->sta.deflink.addr, addr, ETH_ALEN); sta->sta.max_rx_aggregation_subframes = local->hw.max_rx_aggregation_subframes;