diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-10-27 12:23:26 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-10-27 12:25:53 -0500 |
commit | f07b326090cba67811935f760aebe69f054a8af3 (patch) | |
tree | 3aa75062ccb53b12af9b9c0a91b6c216a95f4c80 /drivers/ifxmodem | |
parent | 8eb658f5ea28cccf302e5bbcad0c384ba563ee6d (diff) | |
download | ofono-f07b326090cba67811935f760aebe69f054a8af3.tar.bz2 |
ifxmodem: Notify core about handled commands
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r-- | drivers/ifxmodem/stk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c index a7ca0895..c17a5ad7 100644 --- a/drivers/ifxmodem/stk.c +++ b/drivers/ifxmodem/stk.c @@ -197,12 +197,14 @@ static void sati_notify(GAtResult *result, gpointer user_data) static void satn_notify(GAtResult *result, gpointer user_data) { + struct ofono_stk *stk = user_data; GAtResultIter iter; const guint8 *pdu; gint len; DBG(""); + /* Proactive command has been handled by the modem. */ g_at_result_iter_init(&iter, result); if (g_at_result_iter_next(&iter, "+SATN:") == FALSE) @@ -211,12 +213,10 @@ static void satn_notify(GAtResult *result, gpointer user_data) if (g_at_result_iter_next_hexstring(&iter, &pdu, &len) == FALSE) return; - DBG("len %d", len); + if (len == 0) + return; - /* Proactive command has been handled by the modem. If the - * command was for Setup Call then a response with AT+SATD - * is required. This is not handled properly yet. - */ + ofono_stk_proactive_command_handled_notify(stk, len, pdu); } static void satf_notify(GAtResult *result, gpointer user_data) |