From f2ab189b6e66bd830112a6378a12c8bb9c250ca5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 20 Oct 2010 11:57:22 +0200 Subject: ifxmodem: Signal STK session end only after normal ending of command The Infineon modem returns more detailed information of the SIM Toolkit proactive sessions to the modem driver. A proactive session starts with the status response '91 xx' (proactive command pending) and ends with a status response response of '90 00' (normal ending of command) after Terminal Response. So only when receiving '90 00' result, the indication that the session has ended should be given to the core. --- drivers/ifxmodem/stk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/ifxmodem') diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c index 16a3471f..a7ca0895 100644 --- a/drivers/ifxmodem/stk.c +++ b/drivers/ifxmodem/stk.c @@ -240,7 +240,8 @@ static void satf_notify(GAtResult *result, gpointer user_data) DBG("sw1 %d sw2 %d", sw1, sw2); - ofono_stk_proactive_session_end_notify(stk); + if (sw1 == 0x90 && sw2 == 0x00) + ofono_stk_proactive_session_end_notify(stk); } static void cfun_support_cb(gboolean ok, GAtResult *result, -- cgit v1.2.3