]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfcd6f873839108b7d4267996f331694956b6d5a4
tree3a973e17bfe2ed540fd725f1bdeb9baa29663b0d
parent2d1ea388fd11bdf0968b4bcbe93cd467fe7ba402
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