]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/core.h
cfg80211: allow mgmt_frame_register callback to sleep
authorJohannes Berg <johannes.berg@intel.com>
Tue, 23 Jun 2015 15:47:05 +0000 (17:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:38:26 +0000 (15:38 +0200)
commit33d8783c58427683b533664f67f8c4378ed64495
treec85ca188c6028c484c7c95996e5de399f9ed09a4
parent69f132236827ce7d4531846cc2b9447dd5620aff
cfg80211: allow mgmt_frame_register callback to sleep

This callback is currently not allowed to sleep, which makes it more
difficult to implement proper driver methods in mac80211 than it has
to be. Instead of doing asynchronous work here in mac80211, make it
possible for the callback to sleep by doing some asynchronous work
in cfg80211. This also enables improvements to other drivers, like
ath6kl, that would like to sleep in this callback.

While at it, also fix the code to call the driver on the implicit
unregistration when an interface is removed, and do that also when
a P2P-Device wdev is destroyed (otherwise we leak the structs.)

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