net: wireless: bcmdhd: Enable wlan access on resume for all sdio functions
Dmitry Shmidt [Mon, 19 Dec 2011 18:24:09 +0000 (10:24 -0800)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c

index 1a37086..af2a370 100644 (file)
@@ -200,11 +200,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();