OSDN Git Service

wifi: cfg80211: add optional link add/remove callbacks
authorJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jun 2022 09:07:55 +0000 (11:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jun 2022 10:56:11 +0000 (12:56 +0200)
commitf2a0290b2df2b0e65ab78b71c4a15e732afd4458
tree8e3f641dfd925f1a349697c37c6596da3c7fe62a
parentc8a11ed5539f6df98d06259b5177975162b88510
wifi: cfg80211: add optional link add/remove callbacks

Add some optional callbacks for link add/remove so that
drivers can react here. Initially, I thought it would be
sufficient to just create the link in start_ap etc., but
it turns out that's not so simple, since there are quite
a few callbacks that can be called: if they're erroneously
without start_ap, things might crash.

Thus it might be easier for drivers to allocate all the
necessary data structures immediately, to not have to
worry about it in each callback, since cfg80211 checks
that the link ID is valid (has been added.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/nl80211.c
net/wireless/rdev-ops.h
net/wireless/trace.h