PD-105484 fix wifi turn off hang by rongjun
authorJiamin Miao <jiamin.miao@amlogic.com>
Thu, 7 May 2015 01:06:43 +0000 (09:06 +0800)
committerJiamin Miao <jiamin.miao@amlogic.com>
Thu, 7 May 2015 01:06:43 +0000 (09:06 +0800)
Change-Id: Icebbdaab8646e1e44484b32ecff0013356d3bdcc

broadcm_4354/dhd_gpio.c

index c561819b09de5316d7b3c812f70a40deebab0c69..f66e55e8fde5d7aab579bb661f5cff6f6a655b85 100755 (executable)
@@ -86,7 +86,7 @@ int bcm_wlan_set_power(bool on)
                mdelay(200);
                extern_wifi_set_enable(1);
                mdelay(200);
-               //sdio_reinit();
+//             sdio_reinit();
 #endif
        } else {
                printk("======== PULL WL_REG_ON LOW! ========\n");
@@ -94,8 +94,8 @@ int bcm_wlan_set_power(bool on)
                err = gpio_set_value(EXYNOS4_GPK1(0), 0);
 #endif
 #ifdef CUSTOMER_HW_AMLOGIC
-               extern_wifi_set_enable(0);
-               mdelay(200);
+//             extern_wifi_set_enable(0);
+//             mdelay(200);
 #endif
        }
 
@@ -114,6 +114,10 @@ int bcm_wlan_set_carddetect(bool present)
 #endif
        } else {
                printk("======== Card detection to remove SDIO card! ========\n");
+#ifdef CUSTOMER_HW_AMLOGIC
+               extern_wifi_set_enable(0);
+               mdelay(200);
+#endif
 #ifdef CONFIG_MACH_ODROID_4210
                err = sdhci_s3c_force_presence_change(&sdmmc_channel, 0);
 #endif