diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-15 12:50:00 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-06-20 13:57:08 +0300 |
commit | 630c7e4621763220d23789fbb036e0cf227e0b22 (patch) | |
tree | 6f287871ad0eac827afa35e185464f6eb6ff7217 /net/mac80211 | |
parent | ba6ddab94fc63813ad582c55dd95ed596420d101 (diff) | |
download | linux-630c7e4621763220d23789fbb036e0cf227e0b22.tar.xz |
wifi: mac80211: set STA deflink addresses
We should set the STA deflink addresses in case no
link is really added.
Fixes: 046d2e7c50e3 ("mac80211: prepare sta handling for MLO support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index ccd792af6b56..014032369994 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -513,6 +513,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; |