summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-24 20:02:49 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-08-24 20:02:49 +0400
commitc4d12a5c5bcb5fe29fb13e9afa23975af3fbb63b (patch)
tree88a9bab3bd0eb15e1e3caf212b53dde922536e9e
parent706a34a8643739b34f589a67dd1ec5baa24172ef (diff)
downloadhardware_ril_samsung-ril-c4d12a5c5bcb5fe29fb13e9afa23975af3fbb63b.zip
hardware_ril_samsung-ril-c4d12a5c5bcb5fe29fb13e9afa23975af3fbb63b.tar.gz
hardware_ril_samsung-ril-c4d12a5c5bcb5fe29fb13e9afa23975af3fbb63b.tar.bz2
Use RADIO_STATE_ON on ICS/JB only
-rw-r--r--compat.h3
-rw-r--r--sec.c3
-rw-r--r--sms.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/compat.h b/compat.h
index efbdd60..3eda9af 100644
--- a/compat.h
+++ b/compat.h
@@ -45,6 +45,9 @@
#define RIL_CardStatus RIL_CardStatus_v6
#define RIL_SIM_IO RIL_SIM_IO_v6
#define RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
+ #define COMPAT_RADIO_STATE_ON RADIO_STATE_ON
+#else
+ #define COMPAT_RADIO_STATE_ON RADIO_STATE_SIM_READY
#endif
//set it to the maximum supported revision
diff --git a/sec.c b/sec.c
index bb9b9bc..a6b24b6 100644
--- a/sec.c
+++ b/sec.c
@@ -88,8 +88,7 @@ void ril_state_update(SIM_Status status)
switch(status) {
case SIM_READY:
- radio_state = RADIO_STATE_ON;
- //radio_state = RADIO_STATE_SIM_READY;
+ radio_state = COMPAT_RADIO_STATE_ON;
break;
case SIM_NOT_READY:
radio_state = RADIO_STATE_SIM_NOT_READY;
diff --git a/sms.c b/sms.c
index 5eed65d..7a21ae3 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_ON) {
+ if(ril_state.radio_state == COMPAT_RADIO_STATE_ON) {
ipc_fmt_send(IPC_SMS_DEVICE_READY, IPC_TYPE_SET, NULL, 0, info->aseq);
}