From 04112b7e5184f1d32474a836531e0a5e1664649a Mon Sep 17 00:00:00 2001 From: Jiamin Miao Date: Thu, 7 May 2015 09:06:43 +0800 Subject: [PATCH] PD-105484 fix wifi turn off hang by rongjun Change-Id: Icebbdaab8646e1e44484b32ecff0013356d3bdcc --- broadcm_4354/dhd_gpio.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/broadcm_4354/dhd_gpio.c b/broadcm_4354/dhd_gpio.c index c561819..f66e55e 100755 --- a/broadcm_4354/dhd_gpio.c +++ b/broadcm_4354/dhd_gpio.c @@ -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 -- 2.20.1