From 4c10eb5a28da34fd15da5a801a4e181b2ec76be1 Mon Sep 17 00:00:00 2001 From: Michael Hsu Date: Fri, 17 May 2013 16:22:55 -0700 Subject: 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 Reviewed-on: http://git-master/r/229999 Reviewed-by: Rakesh Kumar Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matt Wagner GVS: Gerrit_Virtual_Submit --- drivers/net/wireless/bcmdhd/dhd_linux.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3