Skip to content

Commit

Permalink
wifi: mac80211: mlme: set sta.mlo to mlo state
Browse files Browse the repository at this point in the history
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: bd363ee ("wifi: mac80211: mlme: set sta.mlo correctly")
Fixes: 81151ce ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg-intel committed Jul 22, 2022
1 parent 0f13f3c commit 6d8e0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -6393,7 +6393,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
}

if (!have_sta) {
if (link_id >= 0)
if (mlo)
new_sta = sta_info_alloc_with_link(sdata, ap_mld_addr,
link_id, cbss->bssid,
GFP_KERNEL);
Expand All @@ -6405,7 +6405,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
goto out_err;
}

new_sta->sta.mlo = link_id >= 0;
new_sta->sta.mlo = mlo;
}

/*
Expand Down

0 comments on commit 6d8e0f8

Please sign in to comment.