OSDN Git Service

brcmfmac: move "cfg80211_ops" pointer to another struct
authorRafał Miłecki <rafal@milecki.pl>
Tue, 3 Sep 2019 04:29:26 +0000 (06:29 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Sep 2019 13:42:32 +0000 (16:42 +0300)
commitba76ff25ee64d5cfc86209d1fbb3c294b2c04412
tree596dab1ab051dc8bfbe2c7c3474f042624e338ae
parent172ca8308b0517ca2522a8c885755fd5c20294e7
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>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h