bool mtk_wcn_wifi_func_off() { omap_mmc_update_mtk_card_status(0); /* remove to wlan_remove to safely close the wifi , avoid sdio access error*/ //mt5931_power_off(); return true; }
INT32 wmt_plat_sdio_ctrl (WMT_SDIO_SLOT_NUM sdioPortType, ENUM_FUNC_STATE on) { int ret = 0; if (FUNC_OFF == on) { /* add control logic here to generate SDIO CARD REMOVAL event to mmc/sd * controller. SDIO card removal operation and remove success messages * are expected. */ } else { /* add control logic here to generate SDIO CARD INSERTION event to mmc/sd * controller. SDIO card detection operation and detect success messages * are expected. */ } extern int omap_mmc_update_mtk_card_status(int state); ret = omap_mmc_update_mtk_card_status((FUNC_OFF == on)? 0: 1); WMT_INFO_FUNC(KERN_INFO "%s, on=%d, ret=%d\n", __FUNCTION__, on, ret); return ret; }
bool mtk_wcn_wifi_func_on() { mt5931_power_on(); omap_mmc_update_mtk_card_status(1); return true; }