projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c15664
)
net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails
author
Dmitry Shmidt
<dimitrysh@google.com>
Mon, 30 Apr 2012 23:34:01 +0000
(16:34 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Wed, 2 May 2012 17:33:47 +0000
(10:33 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/dhd_linux.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/bcmdhd/dhd_linux.c
b/drivers/net/wireless/bcmdhd/dhd_linux.c
index fcf8f0a45413555b38db7a03e2d4b1b90246daf3..667e1b91bab68cfee5b29187e72b53de5fec2211 100644
(file)
--- 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;
}