summaryrefslogtreecommitdiffstats
path: root/sec.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-09-07 17:27:46 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-09-07 17:27:46 +0200
commit7fafa00a882adc2568e768223e0aad6a3790a872 (patch)
treefcec8aa30dc284831eafeb36e9f9a1c3a9321935 /sec.c
parentb0dfba56bf5eb32f30efa4f95818fee9afeba7f5 (diff)
downloadhardware_ril_samsung-ril-7fafa00a882adc2568e768223e0aad6a3790a872.zip
hardware_ril_samsung-ril-7fafa00a882adc2568e768223e0aad6a3790a872.tar.gz
hardware_ril_samsung-ril-7fafa00a882adc2568e768223e0aad6a3790a872.tar.bz2
GPRS: Fixed style, compat and RIL_VERSION < 6 return data on SETUP_DATA_CALL
SEC/SMS: Fixed compat Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'sec.c')
-rw-r--r--sec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sec.c b/sec.c
index fefe5ed..9ee39a2 100644
--- a/sec.c
+++ b/sec.c
@@ -90,7 +90,11 @@ void ril_state_update(SIM_Status status)
switch(status) {
case SIM_READY:
- radio_state = COMPAT_RADIO_STATE_ON;
+#if RIL_VERSION >= 7
+ radio_state = RADIO_STATE_ON;
+#else
+ radio_state = RADIO_STATE_SIM_READY;
+#endif
break;
case SIM_NOT_READY:
radio_state = RADIO_STATE_SIM_NOT_READY;