OSDN Git Service

wifi: mac80211: mlme: set sta.mlo correctly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 13:11:50 +0000 (15:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 13:12:45 +0000 (15:12 +0200)
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>
net/mac80211/mlme.c

index e4e501f..912095e 100644 (file)
@@ -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;
        }
 
        /*