P#108462 fix bcm wifi android5.1 suspend fail
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 1 Jul 2015 06:46:34 +0000 (14:46 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Thu, 2 Jul 2015 08:45:06 +0000 (16:45 +0800)
Change-Id: I4ad0b8f88d59007975afd5a9176f9af6001b71b9

broadcm_4354/dhd_sdio.c

index 5fdea7f27f5f025f4d1afe50f71af133c670a627..756dd3e2654750d3c6e1ee09c04157793929b77e 100755 (executable)
@@ -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;