}
}
+extern void reset_g_onoff(void);
void
rockchip_wifi_exit_module(void)
{
return -EINVAL;
} while (0);
+ reset_g_onoff();
+
/* Call customer gpio to turn on power with WL_REG_ON signal */
dhd_customer_gpio_wlan_ctrl(WLAN_POWER_ON);
key->iv_initialized = dtoh32(key->iv_initialized);
}
+void reset_g_onoff(void)
+{
+ if(g_onoff == G_WLAN_SET_OFF) {
+ printk("g_onoff = G_WLAN_SET_OFF, need to reset to G_WLAN_SET_ON\n");
+ g_onoff = G_WLAN_SET_ON;
+ }
+}
+
static int
dev_wlc_ioctl(
struct net_device *dev,
}
}
+extern void reset_g_onoff(void);
void
rockchip_wifi_exit_module(void)
{
return -EINVAL;
} while (0);
+ reset_g_onoff();
+
/* Call customer gpio to turn on power with WL_REG_ON signal */
dhd_customer_gpio_wlan_ctrl(WLAN_POWER_ON);
key->iv_initialized = dtoh32(key->iv_initialized);
}
+void reset_g_onoff(void)
+{
+ if(g_onoff == G_WLAN_SET_OFF) {
+ printk("g_onoff = G_WLAN_SET_OFF, need to reset to G_WLAN_SET_ON\n");
+ g_onoff = G_WLAN_SET_ON;
+ }
+}
+
static int
dev_wlc_ioctl(
struct net_device *dev,