From: hwg Date: Tue, 30 Oct 2012 09:57:06 +0000 (+0800) Subject: wifi: disable wifi power then enable in first open X-Git-Tag: firefly_0821_release~8301 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=896df773a98fa0934ebe28869200154a05c494d1;p=firefly-linux-kernel-4.4.55.git wifi: disable wifi power then enable in first open --- diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c index 16b6582a73e5..aeac6fe3c112 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c @@ -376,10 +376,10 @@ int rk29sdk_wifi_power(int on) { pr_info("%s: %d\n", __func__, on); if (on){ - /*if(usbwifi_power_status == 1) { + if(usbwifi_power_status == 1) { rkusb_wifi_power(0); mdelay(50); - }*/ + } rkusb_wifi_power(1); usbwifi_power_status = 1; pr_info("wifi turn on power\n");