]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd87c559a0fa17cfd770d4a9c946f39efaaa0d977
tree8e3f641dfd925f1a349697c37c6596da3c7fe62a
parent736fbd18c001a64c512342456d421c4fa68bf2cf
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