summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-07-09 12:35:36 -0700
committerDan Williams <dcbw@redhat.com>2010-07-09 12:35:36 -0700
commit56665c19af431234ebe1b22cff9f0f9b9fb3d02f (patch)
tree181723d4bdd6976e670636ae8c3815733a4fc639
parentfe2145ddc407a81a0282e5729fd806ca8f80a735 (diff)
nokia: N900 appears to need a longer port delay (rh #583691)
-rw-r--r--plugins/mm-modem-nokia.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mm-modem-nokia.c b/plugins/mm-modem-nokia.c
index eb90287a..3cbea00b 100644
--- a/plugins/mm-modem-nokia.c
+++ b/plugins/mm-modem-nokia.c
@@ -54,6 +54,7 @@ grab_port (MMModem *modem,
54 MMGenericGsm *gsm = MM_GENERIC_GSM (modem); 54 MMGenericGsm *gsm = MM_GENERIC_GSM (modem);
55 MMPortType ptype = MM_PORT_TYPE_IGNORED; 55 MMPortType ptype = MM_PORT_TYPE_IGNORED;
56 MMPort *port = NULL; 56 MMPort *port = NULL;
57 gulong send_delay = 5000;
57 58
58 if (suggested_type == MM_PORT_TYPE_UNKNOWN) { 59 if (suggested_type == MM_PORT_TYPE_UNKNOWN) {
59 if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_PRIMARY)) 60 if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_PRIMARY))
@@ -71,6 +72,9 @@ grab_port (MMModem *modem,
71 mm_serial_parser_v1_e1_destroy); 72 mm_serial_parser_v1_e1_destroy);
72 } 73 }
73 74
75 /* N900 appears to need longer delay between port bytes */
76 g_object_set (G_OBJECT (port), MM_SERIAL_PORT_SEND_DELAY, send_delay, NULL);
77
74 return !!port; 78 return !!port;
75} 79}
76 80