summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sec.c6
-rw-r--r--sms.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/sec.c b/sec.c
index 02083d8..bb9b9bc 100644
--- a/sec.c
+++ b/sec.c
@@ -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;
diff --git a/sms.c b/sms.c
index ce53d8a..5eed65d 100644
--- a/sms.c
+++ b/sms.c
@@ -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);
}