summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-07-15 15:11:50 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 15:12:45 +0200
commitbd363ee5330250b93cb1e0e16c1c54682fcbe595 (patch)
tree4e9dc3c758a77dceab04b3e48e81a8ff118b6331 /net/mac80211/mlme.c
parent8f5d9e68c90dd6b01afdfda6d9926c6ea4931c00 (diff)
downloadlinux-bd363ee5330250b93cb1e0e16c1c54682fcbe595.tar.bz2
wifi: mac80211: mlme: set sta.mlo correctly
Due to some changes and rebasing between different patches this fell through the cracks; we need to set sta.mlo if the connection is using MLO. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index e4e501f2713e..912095e4e256 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -6402,6 +6402,8 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
err = -ENOMEM;
goto out_err;
}
+
+ new_sta->sta.mlo = link_id >= 0;
}
/*