aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-09-03 06:29:26 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-09-13 16:42:32 +0300
commitba76ff25ee64d5cfc86209d1fbb3c294b2c04412 (patch)
tree596dab1ab051dc8bfbe2c7c3474f042624e338ae /drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
parentcxgb4: Fix spelling typos (diff)
downloadlinux-dev-ba76ff25ee64d5cfc86209d1fbb3c294b2c04412.tar.xz
linux-dev-ba76ff25ee64d5cfc86209d1fbb3c294b2c04412.zip
brcmfmac: move "cfg80211_ops" pointer to another struct
This moves "ops" pointer from "struct brcmf_cfg80211_info" to the "struct brcmf_pub". This movement makes it possible to allocate wiphy without attaching cfg80211 (brcmf_cfg80211_attach()). It's required for later separation of wiphy allocation and driver initialization. While at it fix also an unlikely memory leak in the brcmf_attach(). Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
index 86517a3d74b1..6699637d3bf8 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
@@ -97,6 +97,7 @@ struct brcmf_pub {
struct brcmf_bus *bus_if;
struct brcmf_proto *proto;
struct wiphy *wiphy;
+ struct cfg80211_ops *ops;
struct brcmf_cfg80211_info *config;
/* Internal brcmf items */