diff options
author | Michael Hsu <mhsu@nvidia.com> | 2013-05-17 16:22:55 -0700 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2013-05-21 02:59:28 -0700 |
commit | 4c10eb5a28da34fd15da5a801a4e181b2ec76be1 (patch) | |
tree | 65aa12547381bdae37deb1358916ccc63d8851c8 | |
parent | 6f8bc8a6feaa61825628d22614c2da99368fe1b8 (diff) |
bcmdhd: Clear dhd driver hang event
Clear dhd driver hang event upon device close, so that next open
will not be blocked.
Prevents condition where wifi cannot be turned off / on because
of a previous hang event flag being set.
Bug 1280309
Change-Id: I6569cd39c8866682c7a19fa840b32162c2a4dd5b
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/229999
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | drivers/net/wireless/bcmdhd/dhd_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 939534aa7875..37e183b41a15 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -2641,6 +2641,8 @@ exit: dhd->pub.rxcnt_timeout = 0; dhd->pub.txcnt_timeout = 0; + dhd->pub.hang_was_sent = 0; + DHD_OS_WAKE_UNLOCK(&dhd->pub); return 0; } |