From 216527eb2363d03afde1263a9aaab79999e9140a Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 30 Apr 2012 16:34:01 -0700 Subject: [PATCH] net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails Signed-off-by: Dmitry Shmidt --- drivers/net/wireless/bcmdhd/dhd_linux.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.34.1