usb wifi: disable wifi power then enable in first open
authorhwg <hwg@rock-chips.com>
Tue, 6 Nov 2012 12:56:54 +0000 (20:56 +0800)
committerhwg <hwg@rock-chips.com>
Tue, 6 Nov 2012 12:56:54 +0000 (20:56 +0800)
arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c

index 33f5f5c7103e82035a160a1fcbc7d46d415496c0..fa7f3ab637183601bbdd386d3699417e2f0a241c 100755 (executable)
@@ -428,10 +428,10 @@ int rk29sdk_wifi_power(int on)
                 gpio_set_value(RK30SDK_WIFI_GPIO_POWER_N, RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE);
                 mdelay(100);           
                #else           
-                /*if(usbwifi_power_status == 1) {
+                if(usbwifi_power_status == 1) {
                     rkusb_wifi_power(0);
                     mdelay(50);
-                }*/
+                }
                 rkusb_wifi_power(1);
                #endif
                 usbwifi_power_status = 1;