wifi: mac80211: add sta link addition/removal
authorJohannes Berg <johannes.berg@intel.com>
Tue, 31 May 2022 21:20:08 +0000 (23:20 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jun 2022 10:56:06 +0000 (12:56 +0200)
commitcb71f1d136a635decf43c3b502ee34fb05640fcd
tree3a973e17bfe2ed540fd725f1bdeb9baa29663b0d
parent69d41b5a9c9d8d24c0faeb376fc2f52fc810d855
wifi: mac80211: add sta link addition/removal

Add the necessary infrastructure, including a new driver
method, to add/remove links to/from a station. To do this,
refactor the link alloc/free a bit, splitting that so we
can do it without linking them, to handle failures better.

Note that a station entry must be created representing an
MLD or a non-MLD STA, it cannot change between the two.
When representing an MLD, the 'deflink' is used for the
first link, which might be removed later, in which case
the memory isn't reused.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/driver-ops.h
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
net/mac80211/trace.h