net: wireless: bcmdhd: Enable wlan access on resume for all sdio functions
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 19 Dec 2011 18:24:09 +0000 (10:24 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Mon, 19 Dec 2011 21:22:50 +0000 (13:22 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c

index 726b6391353d9e1bf5424ff72c8787f94714cc58..0fa2329e2ae5269827fb7c32b30554ef1671585f 100644 (file)
@@ -181,11 +181,9 @@ static int bcmsdh_sdmmc_resume(struct device *pdev)
 {
        struct sdio_func *func = dev_to_sdio_func(pdev);
 
-       if (func->num != 2)
-               return 0;
        dhd_mmc_suspend = FALSE;
 #if defined(OOB_INTR_ONLY)
-       if (dhd_os_check_if_up(bcmsdh_get_drvdata()))
+       if ((func->num == 2) && dhd_os_check_if_up(bcmsdh_get_drvdata()))
                bcmsdh_oob_intr_set(1);
 #endif
        smp_mb();