From b38523f433b8ce5607f20add5ff9181264a318a6 Mon Sep 17 00:00:00 2001 From: Rongjun Chen Date: Wed, 1 Jul 2015 14:46:34 +0800 Subject: [PATCH] P#108462 fix bcm wifi android5.1 suspend fail Change-Id: I4ad0b8f88d59007975afd5a9176f9af6001b71b9 --- broadcm_4354/dhd_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broadcm_4354/dhd_sdio.c b/broadcm_4354/dhd_sdio.c index 5fdea7f..756dd3e 100755 --- a/broadcm_4354/dhd_sdio.c +++ b/broadcm_4354/dhd_sdio.c @@ -7794,7 +7794,7 @@ dhdsdio_suspend(void *context) } ret = dhd_os_check_wakelock(bus->dhd); - if ((!ret) && (bus->dhd->up)) { + if (SLPAUTO_ENAB(bus) && (!ret) && (bus->dhd->up)) { if (wait_event_timeout(bus->bus_sleep, bus->sleeping, wait_time) == 0) { if (!bus->sleeping) { return 1; -- 2.20.1