From 559ecf8fd701d969d5e0131c0e60fbbd6b42452a Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Sat, 3 Jun 2017 21:33:26 +0200 Subject: only check for error codes we know Signed-off-by: Wolfgang Wiedmeyer --- ss.c | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.1