diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-07-14 23:40:47 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 11:43:23 +0200 |
commit | f36fe0a2df03209f4d681fa954f20bfa4eefec45 (patch) | |
tree | 3d653b4e037d82bfef7f773c12b34f3494d73ad2 /net/mac80211/mlme.c | |
parent | wifi: mac80211_hwsim: implement sta_state for MLO (diff) | |
download | linux-f36fe0a2df03209f4d681fa954f20bfa4eefec45.tar.gz linux-f36fe0a2df03209f4d681fa954f20bfa4eefec45.tar.bz2 linux-f36fe0a2df03209f4d681fa954f20bfa4eefec45.zip |
wifi: mac80211: fix up link station creation/insertion
When we create a station with a non-default link, then
we should have a link address, and we definitely need
to insert it into the link hash table on insertion.
Split the API into with and without link creation and
if it has a link, insert the link into the link hash
table on sta_info_insert().
Fixes: ba6ddab94fc6 ("wifi: mac80211: maintain link-sta hash table")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 3263bb188284..c7fb12d6fb17 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5909,7 +5909,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, } if (!have_sta) { - new_sta = sta_info_alloc(sdata, cbss->bssid, -1, GFP_KERNEL); + new_sta = sta_info_alloc(sdata, cbss->bssid, GFP_KERNEL); if (!new_sta) return -ENOMEM; } |