summaryrefslogtreecommitdiffstats
path: root/drivers/ifxmodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-20 11:57:22 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-20 12:01:25 +0200
commitf2ab189b6e66bd830112a6378a12c8bb9c250ca5 (patch)
treedac9ef3fa1d570dee96cf065b9ec198eef03c4c6 /drivers/ifxmodem
parent2475d8826cc6b8c8c8935cb6a4d5afef7caf818f (diff)
downloadofono-f2ab189b6e66bd830112a6378a12c8bb9c250ca5.tar.bz2
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.
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r--drivers/ifxmodem/stk.c3
1 files changed, 2 insertions, 1 deletions
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,