wifi: disable wifi power then enable in first open
authorhwg <hwg@rock-chips.com>
Tue, 30 Oct 2012 09:57:06 +0000 (17:57 +0800)
committerhwg <hwg@rock-chips.com>
Tue, 30 Oct 2012 09:57:06 +0000 (17:57 +0800)
arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c

index 16b6582a73e584c54674d265c155c3c0d0bc3e3b..aeac6fe3c1128fb03e273c1cfd17985dbb6deb15 100755 (executable)
@@ -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");