diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2012-04-30 16:34:01 -0700 |
---|---|---|
committer | Om Prakash Singh <omp@nvidia.com> | 2012-06-15 14:15:17 +0530 |
commit | 9b5e33e67e8dd7cd664003c5a6bd805104ed82b7 (patch) | |
tree | 37779ac61716edf9bf41869818776d31c7cd0501 | |
parent | 0e3baaafacb4c80df9ec4ba6278ad2ba4b6cf45d (diff) |
net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r-- | drivers/net/wireless/bcmdhd/dhd_linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 387d43dd858d..98738970afad 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -2449,6 +2449,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; } |