int mot_wifi_set_carddetect(int val) { pr_debug("%s: %d\n", __func__, val); mot_wifi_cd = val; sdhci_tegra_wlan_detect(); if (wifi_status_cb) wifi_status_cb(val, wifi_status_cb_devid); else pr_warning("%s: Nobody to notify\n", __func__); return 0; }
void bcm_wlan_power_off(unsigned mode) { if (0 == wlan_ctrl.ready) { pr_err("%s WLAN control not ready\n", __func__); return; } gpio_set_value(WLAN_RESET_GPIO, 0x0); msleep(100); gpio_set_value(WLAN_REG_ON_GPIO, 0x0); msleep(100); if (1 == mode){ sdhci_tegra_wlan_detect(); msleep(100); } }
void bcm_wlan_power_on(int mode) { if (0 == wlan_ctrl_ready) { pr_err("%s WLAN control not ready\n", __func__); return; } gpio_set_value(WLAN_REG_ON_GPIO, 0x1); msleep_interruptible(100); gpio_set_value(WLAN_RESET_GPIO, 0x1); msleep_interruptible(100); if (1 == mode){ sdhci_tegra_wlan_detect(); msleep_interruptible(100); } }