mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
brcmfmac: remove monitor interface when detaching
[ Upstream commit 4f61563da0 ]
This fixes a minor WARNING in the cfg80211:
[ 130.658034] ------------[ cut here ]------------
[ 130.662805] WARNING: CPU: 1 PID: 610 at net/wireless/core.c:954 wiphy_unregister+0xb4/0x198 [cfg80211]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
be9550ceb6
commit
bef40d3410
@@ -1246,6 +1246,11 @@ void brcmf_detach(struct device *dev)
|
||||
|
||||
brcmf_proto_detach_pre_delif(drvr);
|
||||
|
||||
if (drvr->mon_if) {
|
||||
brcmf_net_detach(drvr->mon_if->ndev, false);
|
||||
drvr->mon_if = NULL;
|
||||
}
|
||||
|
||||
/* make sure primary interface removed last */
|
||||
for (i = BRCMF_MAX_IFS-1; i > -1; i--)
|
||||
brcmf_remove_interface(drvr->iflist[i], false);
|
||||
|
||||
Reference in New Issue
Block a user