]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: Fix warn trace on module unload while in ibss mode
authorHante Meuleman <meuleman@broadcom.com>
Sat, 2 Jan 2016 08:41:40 +0000 (09:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Jan 2016 09:21:14 +0000 (11:21 +0200)
commit79269b5a5be39d30279d9e83a1f9e26f74985e0c
treea60df656f4665e9c93f0d360fb0123828399c3cf
parent8c7089e712a600721f0e1bae46b7b532e4ebd539
brcmfmac: Fix warn trace on module unload while in ibss mode

When the driver is being unloaded a situation can occur where the
wirelesss core (cfg80211) wants to remove the ibss, but the state
of brcmfmac has already been set to down. When an error is
returned in that situation then that will result in a stack
trace on removal of the wiphy object. This is avoided by
returning 0 when device is down on a leave_ibss call.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c