summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-15 15:44:48 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-15 15:51:36 -0500
commit81d382aea2fbea7da42bc1a3df2fcdf33a434fc9 (patch)
tree0f60b91edae31ca5f31b2f97d9542fe32dd55c66 /drivers/atmodem
parent86864c819c0b9ef7bd98c97224ac7732f280b3be (diff)
downloadofono-81d382aea2fbea7da42bc1a3df2fcdf33a434fc9.tar.bz2
Add extra_pdu_crlf quirk to ti_calypso driver
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/atmodem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/atmodem/atmodem.c b/drivers/atmodem/atmodem.c
index 662bfdee..39b90f75 100644
--- a/drivers/atmodem/atmodem.c
+++ b/drivers/atmodem/atmodem.c
@@ -288,6 +288,11 @@ error:
static void send_init_commands(const char *vendor, GAtChat *parser)
{
if (!strcmp(vendor, "ti_calypso")) {
+ int flags = g_at_chat_get_flags(parser);
+
+ flags |= G_AT_CHAT_FLAG_EXTRA_PDU_CRLF;
+ g_at_chat_set_flags(parser, flags);
+
g_at_chat_set_wakeup_command(parser, "\r", 1000, 5000);
g_at_chat_send(parser, "AT%CUNS=0", NULL,