summaryrefslogtreecommitdiffstats
path: root/svc.c
diff options
context:
space:
mode:
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