/***************************************************************************** * FUNCTION * rmmi_off_hdlr * DESCRIPTION * PARAMETERS * source_string_ptr [IN] At cmd string * RETURNS * void *****************************************************************************/ void rmmi_off_hdlr(rmmi_string_struct *source_string_ptr) { kal_bool ret_val = KAL_FALSE; kal_uint8 const *rsp_str = NULL; kal_uint8 buffer[RMMI_SHORT_RSP_LEN]; kal_uint16 string_length = 0; switch (source_string_ptr->cmd_mode) { case RMMI_ACTIVE_MODE: { ret_val = l4c_nw_cfun_state_req(source_string_ptr->src_id, 4); if (ret_val == KAL_TRUE) { return; } break; } default: break; } rsp_str = &buffer[0]; rmmi_final_rsp_generator(source_string_ptr->src_id, ret_val, (kal_uint8*) rsp_str, string_length); }
/***************************************************************************** * FUNCTION * l4c_switch_to_desire_state_req * DESCRIPTION * * PARAMETERS * sim_interface [IN] * RETURNS * void *****************************************************************************/ kal_uint8 l4c_root_switch_to_desire_state_req(module_type mod_id, kal_uint8 desired_cfun_state) { kal_bool res = KAL_FALSE; module_type temp_mod_id = l4c_current_mod_id; layer4_module_context_selection(mod_id); res = l4c_nw_cfun_state_req(LMMI_SRC2, desired_cfun_state); layer4_module_context_selection(temp_mod_id); return (kal_uint8)res; }
void l4c_eq_power_on_lind(kal_uint8 poweron_mode, kal_uint8 battery_level, kal_uint8 build_label, rtc_format_struct *rtc_time, kal_uint8 flightmode_state, kal_uint8 dual_sim_mode_setting, kal_uint8 dual_sim_uart_setting) { kal_uint8 cfun_state = 1; if (custom_disable_modem_auto_startup(&cfun_state) == KAL_FALSE) { #if !defined(__GEMINI__) l4c_nw_cfun_state_req(LMMI_SRC, cfun_state); #endif } }
void l4c_eq_power_on_lind(kal_uint8 poweron_mode, kal_uint8 battery_level, kal_uint8 build_label, rtc_format_struct *rtc_time, kal_uint8 flightmode_state, kal_uint8 dual_sim_mode_setting, kal_uint8 dual_sim_uart_setting) { kal_uint8 cfun_state = 1; if (custom_disable_modem_auto_startup(&cfun_state) == KAL_FALSE) { if (l4c_get_cfun_state() == 0) { #if defined(__GEMINI__) l4c_nw_efun_state_req(LMMI_SRC, (cfun_state==1)?QUAD_SIM_CONFIG:SIM_RADIO_OFF); #else l4c_nw_cfun_state_req(LMMI_SRC, cfun_state); #endif } } }