summaryrefslogtreecommitdiffstats
path: root/sms.c
diff options
context:
space:
mode:
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sms.c b/sms.c
index 9674d08..c50d680 100644
--- a/sms.c
+++ b/sms.c
@@ -697,7 +697,11 @@ 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 == COMPAT_RADIO_STATE_ON) {
+#if RIL_VERSION >= 7
+ if(ril_state.radio_state == RADIO_STATE_ON) {
+#else
+ if(ril_state.radio_state == RADIO_STATE_SIM_READY) {
+#endif
ipc_fmt_send(IPC_SMS_DEVICE_READY, IPC_TYPE_SET, NULL, 0, info->aseq);
}