summaryrefslogtreecommitdiffstats
path: root/plugins/mbm.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-24 16:09:45 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-24 16:09:45 +0200
commitbff43cead1e04e83277f449b9f0905a875bc1154 (patch)
tree9ed16fef4c5092124768c2b5a1cc6f2005827c9f /plugins/mbm.c
parent01b754806d4d9bf2a21ae25605099372794caaad (diff)
downloadofono-bff43cead1e04e83277f449b9f0905a875bc1154.tar.bz2
mbm: Set baud rate to 115200 for TTY speed
The Ericsson F5521gw is a bit picky with its TTY speed. All previous cards do not need this setting, but this one does. To make things a bit simpler, just set all Ericsson cards to a baud rate of 115200.
Diffstat (limited to 'plugins/mbm.c')
-rw-r--r--plugins/mbm.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c
index 45ad8645..db70f168 100644
--- a/plugins/mbm.c
+++ b/plugins/mbm.c
@@ -258,8 +258,18 @@ static GAtChat *create_port(const char *device)
GAtSyntax *syntax;
GIOChannel *channel;
GAtChat *chat;
+ GHashTable *options;
+
+ options = g_hash_table_new(g_str_hash, g_str_equal);
+ if (options == NULL)
+ return NULL;
+
+ g_hash_table_insert(options, "Baud", "115200");
+
+ channel = g_at_tty_open(device, options);
+
+ g_hash_table_destroy(options);
- channel = g_at_tty_open(device, NULL);
if (channel == NULL)
return NULL;