Use RADIO_STATE_ON
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>
Mon, 20 Aug 2012 09:57:05 +0000 (13:57 +0400)
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>
Mon, 20 Aug 2012 09:57:05 +0000 (13:57 +0400)
sec.c
sms.c

diff --git a/sec.c b/sec.c
index 02083d8..bb9b9bc 100644 (file)
--- 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 (file)
--- 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);
        }