{
pr_info("%s: %d\n", __func__, on);
if (on){
- gpio_set_value(RK29SDK_WIFI_BT_GPIO_POWER_N, on);
+ gpio_set_value(RK29SDK_WIFI_BT_GPIO_POWER_N, GPIO_HIGH);
+ gpio_set_value(RK29SDK_WIFI_GPIO_RESET_N, GPIO_HIGH);
mdelay(100);
pr_info("wifi turn on power\n");
}else{
if (!rk29sdk_bt_power_state){
- gpio_set_value(RK29SDK_WIFI_BT_GPIO_POWER_N, on);
+ gpio_set_value(RK29SDK_WIFI_BT_GPIO_POWER_N, GPIO_LOW);
mdelay(100);
pr_info("wifi shut off power\n");
}else
{
pr_info("wifi shouldn't shut off power, bt is using it!\n");
}
+ gpio_set_value(RK29SDK_WIFI_GPIO_RESET_N, GPIO_LOW);
}
wifi_control_data = wifi_ctrl;
wifi_set_power(1, 0); /* Power On */
- wifi_set_reset(1, 0); /* deactive reset */
wifi_set_carddetect(1); /* CardDetect (0->1) */
up(&wifi_control_sem);
wifi_control_data = wifi_ctrl;
wifi_set_power(0, 0); /* Power Off */
- wifi_set_reset(0, 0); /* active reset */
wifi_set_carddetect(0); /* CardDetect (1->0) */
up(&wifi_control_sem);