From 564d054e8e52e154dbf9996d5efc53260d4f3e09 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 19 Jan 2010 14:35:48 -0800 Subject: [PATCH] cdma: increase data call initiation timeout Some cards (Novatel S720 for example) can take a long time to start a data call if the device isn't activated on the network or the signal strength is low. --- src/mm-generic-cdma.c | 2 +- test/mm-test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm-generic-cdma.c b/src/mm-generic-cdma.c index e3c6004f..7b8dd49d 100644 --- a/src/mm-generic-cdma.c +++ b/src/mm-generic-cdma.c @@ -596,7 +596,7 @@ connect (MMModem *modem, info = mm_callback_info_new (modem, callback, user_data); command = g_strconcat ("DT", number, NULL); - mm_serial_port_queue_command (priv->primary, command, 60, dial_done, info); + mm_serial_port_queue_command (priv->primary, command, 90, dial_done, info); g_free (command); } diff --git a/test/mm-test.py b/test/mm-test.py index a0af8419..99a355f1 100755 --- a/test/mm-test.py +++ b/test/mm-test.py @@ -83,7 +83,7 @@ def cdma_connect(proxy, user, password): # Modem.Simple interface simple = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_SIMPLE) try: - simple.Connect({'number':"#777"}, timeout=60) + simple.Connect({'number':"#777"}, timeout=92) print "\nConnected!" return True except Exception, e: