Commit 6d8e0f84 authored by Johannes Berg's avatar Johannes Berg

wifi: mac80211: mlme: set sta.mlo to mlo state

At this point, we've already changed link_id to be zero for
a non-MLO connection, so use the 'mlo' variable rather than
link ID to determine the MLO status of the station.

Fixes: bd363ee5 ("wifi: mac80211: mlme: set sta.mlo correctly")
Fixes: 81151ce4 ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0f13f3c3
...@@ -6393,7 +6393,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, ...@@ -6393,7 +6393,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
} }
if (!have_sta) { if (!have_sta) {
if (link_id >= 0) if (mlo)
new_sta = sta_info_alloc_with_link(sdata, ap_mld_addr, new_sta = sta_info_alloc_with_link(sdata, ap_mld_addr,
link_id, cbss->bssid, link_id, cbss->bssid,
GFP_KERNEL); GFP_KERNEL);
...@@ -6405,7 +6405,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, ...@@ -6405,7 +6405,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
goto out_err; goto out_err;
} }
new_sta->sta.mlo = link_id >= 0; new_sta->sta.mlo = mlo;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment