summaryrefslogtreecommitdiffstats
path: root/drivers/ifxmodem/ctm.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-02-04 15:42:28 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-02-04 14:54:31 +0100
commit8453b2680ee6d21cb0906bf60bcfb3a2541b1ed6 (patch)
treefddc27b3fb86e650bc80469701a55dc6eebe905f /drivers/ifxmodem/ctm.c
parent4b22a7744919db89a7704c60314b02c62a2ce323 (diff)
downloadofono-8453b2680ee6d21cb0906bf60bcfb3a2541b1ed6.tar.bz2
ifxmodem: fix xtms read and test cmd prefix
with the latest modem firmware, xctms prefix is returned as per the 3GPP format.
Diffstat (limited to 'drivers/ifxmodem/ctm.c')
-rw-r--r--drivers/ifxmodem/ctm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ifxmodem/ctm.c b/drivers/ifxmodem/ctm.c
index 7b23a9b0..5080b167 100644
--- a/drivers/ifxmodem/ctm.c
+++ b/drivers/ifxmodem/ctm.c
@@ -41,7 +41,7 @@
#include "ifxmodem.h"
static const char *none_prefix[] = { NULL };
-static const char *xctms_prefix[] = { "XCTMS:", NULL };
+static const char *xctms_prefix[] = { "+XCTMS:", NULL };
struct ctm_data {
GAtChat *chat;
@@ -65,7 +65,7 @@ static void xctms_query_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_at_result_iter_init(&iter, result);
- if (g_at_result_iter_next(&iter, "XCTMS:") == FALSE)
+ if (g_at_result_iter_next(&iter, "+XCTMS:") == FALSE)
goto error;
if (g_at_result_iter_next_number(&iter, &value) == FALSE)