wifi: mac80211: fix up link station creation/insertion
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jul 2022 21:40:47 +0000 (23:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:23 +0000 (11:43 +0200)
commitf36fe0a2df03209f4d681fa954f20bfa4eefec45
tree3d653b4e037d82bfef7f773c12b34f3494d73ad2
parentd46ffecf82dea931c11a188e2cd618e0bfe083b1
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>
net/mac80211/cfg.c
net/mac80211/ibss.c
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/ocb.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h