diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2012-04-30 16:34:01 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-05-02 10:33:47 -0700 |
commit | 216527eb2363d03afde1263a9aaab79999e9140a (patch) | |
tree | 63d9b27990ffa4699f670ffc40dcd6c4a2064714 /drivers/net/wireless | |
parent | 5c15664a86e18352ccdc2f501907725caa9ab73d (diff) | |
download | kernel_samsung_aries-216527eb2363d03afde1263a9aaab79999e9140a.zip kernel_samsung_aries-216527eb2363d03afde1263a9aaab79999e9140a.tar.gz kernel_samsung_aries-216527eb2363d03afde1263a9aaab79999e9140a.tar.bz2 |
net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net/wireless')
-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 fcf8f0a..667e1b9 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; } |