summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-06-03 21:33:26 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-06-03 21:33:26 +0200
commit559ecf8fd701d969d5e0131c0e60fbbd6b42452a (patch)
treeb5886eccea0ef598acb716df5736a94d280a22a0
parentf10dc57a7b1a718cdc50857180f400e1d032183b (diff)
downloadhardware_ril_samsung-ril-559ecf8fd701d969d5e0131c0e60fbbd6b42452a.zip
hardware_ril_samsung-ril-559ecf8fd701d969d5e0131c0e60fbbd6b42452a.tar.gz
hardware_ril_samsung-ril-559ecf8fd701d969d5e0131c0e60fbbd6b42452a.tar.bz2
only check for error codes we know
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--ss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ss.c b/ss.c
index 14a6232..750f079 100644
--- a/ss.c
+++ b/ss.c
@@ -43,11 +43,10 @@ int ipc_ss_ussd_callback(struct ipc_message *message)
RIL_LOGD("group %d, index %d, type %d, code 0x%04x, code inv 0x%04x", data->group, data->index, data->type, data->code, data->code & 0xff);
// catch error code if no IPC_SS_USSD notification is sent
- if ((data->code & 0xff) != 0x00)
+ if ((data->code & 0xff) == 0x32 || (data->code & 0xff) == 0x24)
goto error;
ril_request_complete(ipc_fmt_request_token(message->aseq), RIL_E_SUCCESS, NULL, 0);
-
goto complete;
error: