net: wireless: bcmdhd: Avoid suspend on watchdog
authorDmitry Shmidt <dimitrysh@google.com>
Fri, 2 Nov 2012 16:38:42 +0000 (09:38 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 2 Nov 2012 16:38:42 +0000 (09:38 -0700)
Change-Id: Ic41a8f369a2ee8b2a0084e6a1cbf6b454ff53353
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/dhd_linux.c

index d0b4c1c325c6a5be9793827b9f6b1c9e61ff4da8..eb155614cd8c3d3374dd7be6f9c76f965dd8a2e4 100644 (file)
@@ -4875,7 +4875,8 @@ int dhd_os_check_wakelock(void *dhdp)
                return 0;
        dhd = (dhd_info_t *)(pub->info);
 
-       if (dhd && wake_lock_active(&dhd->wl_wifi))
+       if (dhd && (wake_lock_active(&dhd->wl_wifi) ||
+           wake_lock_active(&dhd->wl_wdwake)))
                return 1;
 #endif
        return 0;