diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-24 20:02:49 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-24 20:02:49 +0400 |
commit | c4d12a5c5bcb5fe29fb13e9afa23975af3fbb63b (patch) | |
tree | 88a9bab3bd0eb15e1e3caf212b53dde922536e9e | |
parent | 706a34a8643739b34f589a67dd1ec5baa24172ef (diff) | |
download | hardware_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.h | 3 | ||||
-rw-r--r-- | sec.c | 3 | ||||
-rw-r--r-- | sms.c | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -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 @@ -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; @@ -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); } |