From: Dmitry Shmidt Date: Mon, 30 Apr 2012 23:34:01 +0000 (-0700) Subject: net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails X-Git-Tag: firefly_0821_release~7613^2~117 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=216527eb2363d03afde1263a9aaab79999e9140a;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index fcf8f0a45413..667e1b91bab6 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -2448,6 +2448,9 @@ dhd_open(struct net_device *net) OLD_MOD_INC_USE_COUNT; exit: + if (ret) + dhd_stop(net); + DHD_OS_WAKE_UNLOCK(&dhd->pub); return ret; }