summaryrefslogtreecommitdiffstats
path: root/gprs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprs.c')
-rw-r--r--gprs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gprs.c b/gprs.c
index ded89c7..4e77043 100644
--- a/gprs.c
+++ b/gprs.c
@@ -372,6 +372,9 @@ void ril_request_setup_data_call(RIL_Token t, void *data, int length)
if (data == NULL || length < (int) (4 * sizeof(char *)))
goto error;
+ if (ril_radio_state_complete(RADIO_STATE_OFF, t))
+ return;
+
if (ril_data.ipc_fmt_client == NULL || ril_data.ipc_fmt_client->data == NULL)
goto error;
@@ -505,6 +508,9 @@ void ril_request_deactivate_data_call(RIL_Token t, void *data, int length)
if (data == NULL || length < (int) sizeof(char *))
goto error;
+ if (ril_radio_state_complete(RADIO_STATE_OFF, t))
+ return;
+
cid = ((char **) data)[0];
gprs_connection = ril_gprs_connection_find_cid(atoi(cid));
@@ -897,6 +903,9 @@ void ril_request_last_data_call_fail_cause(RIL_Token t)
int last_failed_cid;
int fail_cause;
+ if (ril_radio_state_complete(RADIO_STATE_OFF, t))
+ return;
+
last_failed_cid = ril_data.state.gprs_last_failed_cid;
if (!last_failed_cid) {
@@ -1059,5 +1068,8 @@ void ril_unsol_data_call_list_changed(void)
void ril_request_data_call_list(RIL_Token t)
{
+ if (ril_radio_state_complete(RADIO_STATE_OFF, t))
+ return;
+
ipc_fmt_send_get(IPC_GPRS_PDP_CONTEXT, ril_request_get_id(t));
}