From bff43cead1e04e83277f449b9f0905a875bc1154 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 24 Jul 2011 16:09:45 +0200 Subject: 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. --- plugins/mbm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'plugins/mbm.c') 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; -- cgit v1.2.3