aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-04-08 15:42:28 -0500
committerDan Williams <dcbw@redhat.com>2011-04-08 15:42:28 -0500
commit273f4203d4eeda3614d76bcdbda537ed76feef35 (patch)
treea57a64b52a0107902481ee8b56044bde2f86e847 /plugins
parent2640baefa417612cd26fe3c826634c91d50e0917 (diff)
serial: send entire command in one write if send_delay is 0 (chromium:13506)
Avoids additional USB latency and groups the whole command into one USB packet. BUG=chromium-os:13506
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/mm-modem-samsung-gsm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mm-modem-samsung-gsm.c b/plugins/mm-modem-samsung-gsm.c
index 19b6ba63..2f28c054 100755
--- a/plugins/mm-modem-samsung-gsm.c
+++ b/plugins/mm-modem-samsung-gsm.c
@@ -1112,7 +1112,10 @@ grab_port (MMModem *modem,
if (port && MM_IS_AT_SERIAL_PORT (port)) {
GRegex *regex;
- g_object_set (port, MM_PORT_CARRIER_DETECT, FALSE, NULL);
+ g_object_set (port,
+ MM_PORT_CARRIER_DETECT, FALSE,
+ MM_SERIAL_PORT_SEND_DELAY, (guint64) 0,
+ NULL);
/* %NWSTATE: <rssi>,<mccmnc>,<tech>,<connected>,<regulation> */
regex = g_regex_new ("\\r\\n\\%NWSTATE: (\\d),(\\d+),\\s*([^,\\s]*)\\s*,(.+)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);