/* brcmf_btcoex_detach - clean BT coex data @cfg: driver private cfg80211 data  */
void brcmf_btcoex_detach(struct brcmf_cfg80211_info *cfg)
/* brcmf_btcoex_detach - clean BT coex data @cfg: driver private cfg80211 data  */
void brcmf_btcoex_detach(struct brcmf_cfg80211_info *cfg)
{
	brcmf_dbg(TRACE, "enter\n");
	if (!cfg->btcoex)
		return;
	if (cfg->btcoex->timer_on) {
		cfg->btcoex->timer_on = false;
		del_timer_sync(&cfg->btcoex->timer);
	}
	cancel_work_sync(&cfg->btcoex->work);
	brcmf_btcoex_boost_wifi(cfg->btcoex, false);
	brcmf_btcoex_restore_part1(cfg->btcoex);
	kfree(cfg->btcoex);
	cfg->btcoex = NULL;
}