summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-20 13:57:05 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-20 13:57:05 +0400
commitea4e5b66893aae8d9eca97cbbc0a46b9c5b4d256 (patch)
tree87b852a1ccb3492da00342fcdd6c28a8f90eeeb5
parent8ce014b6cf494f9f6631abfc442eb24c76f23632 (diff)
downloadhardware_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.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);
}