diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-20 13:57:05 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-20 13:57:05 +0400 |
commit | ea4e5b66893aae8d9eca97cbbc0a46b9c5b4d256 (patch) | |
tree | 87b852a1ccb3492da00342fcdd6c28a8f90eeeb5 | |
parent | 8ce014b6cf494f9f6631abfc442eb24c76f23632 (diff) | |
download | hardware_ril_samsung-ril-ea4e5b66893aae8d9eca97cbbc0a46b9c5b4d256.zip hardware_ril_samsung-ril-ea4e5b66893aae8d9eca97cbbc0a46b9c5b4d256.tar.gz hardware_ril_samsung-ril-ea4e5b66893aae8d9eca97cbbc0a46b9c5b4d256.tar.bz2 |
Use RADIO_STATE_ON
-rw-r--r-- | sec.c | 6 | ||||
-rw-r--r-- | sms.c | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -83,12 +83,13 @@ void ril_state_update(SIM_Status status) /* If power mode isn't at least normal, don't update RIL state */ if(ril_state.power_mode < POWER_MODE_NORMAL) return; - + ril_state.sim_status = status; switch(status) { case SIM_READY: - radio_state = RADIO_STATE_SIM_READY; + radio_state = RADIO_STATE_ON; + //radio_state = RADIO_STATE_SIM_READY; break; case SIM_NOT_READY: radio_state = RADIO_STATE_SIM_NOT_READY; @@ -107,6 +108,7 @@ void ril_state_update(SIM_Status status) radio_state = RADIO_STATE_SIM_NOT_READY; break; } + ril_state.radio_state = radio_state; @@ -697,7 +697,7 @@ void ipc_sms_deliver_report(struct ipc_message_info *info) void ipc_sms_device_ready(struct ipc_message_info *info) { - if(ril_state.radio_state == RADIO_STATE_SIM_READY) { + if(ril_state.radio_state == RADIO_STATE_ON) { ipc_fmt_send(IPC_SMS_DEVICE_READY, IPC_TYPE_SET, NULL, 0, info->aseq); } |