summaryrefslogtreecommitdiffstats
path: root/svc.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-09-28 16:38:51 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-09-28 16:38:51 +0200
commitfd051580b347b09bf43d1fab29cea3d58b113e09 (patch)
treedf76485577c71a1435be41a1b6115f2fe4795263 /svc.c
parent233ef2c6769c1c833e89651ae5846e66a5097cfb (diff)
downloadhardware_ril_samsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.zip
hardware_ril_samsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.tar.gz
hardware_ril_samsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.tar.bz2
Check modem state before RIL requests and properly report it on crash
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'svc.c')
-rw-r--r--svc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/svc.c b/svc.c
index ae466b9..de60bcd 100644
--- a/svc.c
+++ b/svc.c
@@ -147,6 +147,9 @@ void ril_request_oem_hook_raw(RIL_Token token, void *data, int length)
if (data == NULL || length < (int) sizeof(RIL_OEMHookHeader))
goto error;
+ if (ril_radio_state_complete(RADIO_STATE_OFF, token))
+ return;
+
header = (RIL_OEMHookHeader *) data;
// Only SVC is supported