brcmfmac: add brcmf_p2p_detach() call in brcmf_cfg80211_detach()
authorArend van Spriel <arend@broadcom.com>
Sat, 12 Jul 2014 06:49:42 +0000 (08:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 20:00:16 +0000 (16:00 -0400)
The function brcmf_p2p_detach() was only called in error flow of the
brcmf_cfg80211_attach() routine, but it also needs to be called
upon brcmf_cfg80211_detach().

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c

index d3bb4e0f4480eb2dfda9cbd8496387f0073c0b58..48078a321716787069c7491880c0e783316acb3a 100644 (file)
@@ -5682,6 +5682,7 @@ void brcmf_cfg80211_detach(struct brcmf_cfg80211_info *cfg)
        WARN_ON(!list_empty(&cfg->vif_list));
        wiphy_unregister(cfg->wiphy);
        brcmf_btcoex_detach(cfg);
+       brcmf_p2p_detach(&cfg->p2p);
        wl_deinit_priv(cfg);
        brcmf_free_wiphy(cfg->wiphy);
 }