linux-stable/drivers/net/wireless/broadcom/brcm80211/brcmfmac
Johannes Berg 2fe8ef1062 cfg80211: change netdev registration/unregistration semantics
We used to not require anything in terms of registering netdevs
with cfg80211, using a netdev notifier instead. However, in the
next patch reducing RTNL locking, this causes big problems, and
the simplest way is to just require drivers to do things better.

Change the registration/unregistration semantics to require the
drivers to call cfg80211_(un)register_netdevice() when this is
happening due to a cfg80211 request, i.e. add_virtual_intf() or
del_virtual_intf() (or if it somehow has to happen in any other
cfg80211 callback).

Otherwise, in other contexts, drivers may continue to use the
normal netdev (un)registration functions as usual.

Internally, we still use the netdev notifier and track (by the
new wdev->registered bool) if the wdev had already been added
to cfg80211 or not.

Link: https://lore.kernel.org/r/20210122161942.cf2f4b65e4e9.Ida8234e50da13eb675b557bac52a713ad4eddf71@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-01-22 16:28:39 +01:00
..
Kconfig
Makefile
bcdc.c net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
bcdc.h Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
bcmsdh.c brcmfmac: bcmsdh: Fix description for function parameter 'pktlist' 2020-11-07 18:04:04 +02:00
btcoex.c brcmfmac: btcoex: Update 'brcmf_btcoex_state' and demote others 2020-09-01 12:22:37 +03:00
btcoex.h
bus.h net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
cfg80211.c brcmfmac: fix error return code in brcmf_cfg80211_connect() 2020-11-24 17:00:16 +02:00
cfg80211.h brcmfmac: support SAE authentication offload in AP mode 2020-09-16 08:56:05 +03:00
chip.c brcmfmac: Use fallthrough pseudo-keyword 2020-08-27 16:07:24 +03:00
chip.h brcmfmac: reset two D11 cores if chip has two D11 cores 2019-12-18 21:07:38 +02:00
common.c brcmfmac: fix invalid permanent MAC address in wiphy 2020-07-14 12:43:43 +03:00
common.h brcmfmac: map 802.1d priority to precedence level based on AP WMM params 2020-05-12 11:50:40 +03:00
commonring.c brcm80211: remove redundant pointer 'address' 2020-04-14 18:04:55 +03:00
commonring.h
core.c cfg80211: change netdev registration/unregistration semantics 2021-01-22 16:28:39 +01:00
core.h net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
debug.c brcmfmac: no need to check return value of debugfs_create functions 2020-05-04 12:50:13 +03:00
debug.h brcmfmac: no need to check return value of debugfs_create functions 2020-05-04 12:50:13 +03:00
dmi.c
feature.c brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode 2020-09-16 08:56:04 +03:00
feature.h brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode 2020-09-16 08:56:04 +03:00
firmware.c brcmfmac: firmware: Demote seemingly unintentional kernel-doc header 2020-09-01 12:20:16 +03:00
firmware.h brcmfmac: Replace zero-length array with flexible-array member 2020-03-23 19:12:12 +02:00
flowring.c brcmfmac: fix 802.1d priority to ac mapping for pcie dongles 2020-05-12 11:50:42 +03:00
flowring.h
fweh.c brcmfmac: fweh: Add missing description for 'gfp' 2020-11-07 18:04:07 +02:00
fweh.h net: brcmfmac: Convey allocation mode as argument 2020-09-29 14:02:55 -07:00
fwil.c
fwil.h brcmfmac: add initial support for monitor mode 2020-01-26 17:41:50 +02:00
fwil_types.h brcmfmac: To fix Bss Info flag definition Bug 2020-07-14 12:43:47 +03:00
fwsignal.c brcmfmac: remove redundant assignment to pointer 'entry' 2020-12-07 18:36:11 +02:00
fwsignal.h net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
msgbuf.c net: brcmfmac: Convey allocation mode as argument 2020-09-29 14:02:55 -07:00
msgbuf.h
of.c brcmfmac: Transform compatible string for FW loading 2020-07-14 12:50:43 +03:00
of.h
p2p.c brcmfmac: p2p: Fix a couple of function headers 2020-09-01 16:05:04 +03:00
p2p.h brcmfmac: support the second p2p connection 2020-05-06 11:39:17 +03:00
pcie.c brcmfmac: Fix memory leak for unpaired brcmf_{alloc/free} 2020-11-07 18:19:23 +02:00
pcie.h
pno.c brcmfmac: don't WARN when there are no requests 2019-10-01 12:14:20 +03:00
pno.h
proto.c Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
proto.h net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
sdio.c brcmfmac: expose firmware config files through modinfo 2020-12-02 21:37:36 +02:00
sdio.h net: brcmfmac: Replace in_interrupt() 2020-09-29 14:02:55 -07:00
tracepoint.c
tracepoint.h
usb.c net: brcmfmac: Convey execution context via argument to brcmf_netif_rx() 2020-09-29 14:02:55 -07:00
usb.h
vendor.c
vendor.h