From: Rongjun Chen Date: Wed, 1 Jul 2015 06:46:34 +0000 (+0800) Subject: P#108462 fix bcm wifi android5.1 suspend fail X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b38523f433b8ce5607f20add5ff9181264a318a6;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git P#108462 fix bcm wifi android5.1 suspend fail Change-Id: I4ad0b8f88d59007975afd5a9176f9af6001b71b9 --- 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;