diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-13 19:42:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-13 20:14:58 +0100 |
commit | 8e83a10c1e712030938fa226ab3f6829f2c1eb97 (patch) | |
tree | fa943faa011cc9cde0306d3e9503edbca3d49ffd | |
parent | 791e097ab54a79ff9c97488fabc33402cf155736 (diff) | |
download | ModemManager-8e83a10c1e712030938fa226ab3f6829f2c1eb97.tar.gz |
hso: disable echo removal
Built-in echo removal conflicts with _OWANCALL unsolicited messages, which are
not coming prefixed with <CR><LF>.
Fixes LP#953294
-rw-r--r-- | plugins/mm-modem-hso.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mm-modem-hso.c b/plugins/mm-modem-hso.c index acb9d849c..1b007fcfc 100644 --- a/plugins/mm-modem-hso.c +++ b/plugins/mm-modem-hso.c @@ -733,7 +733,12 @@ port_grabbed (MMGenericGsm *gsm, GRegex *regex; if (MM_IS_AT_SERIAL_PORT (port)) { - g_object_set (G_OBJECT (port), MM_SERIAL_PORT_SEND_DELAY, (guint64) 0, NULL); + g_object_set (G_OBJECT (port), + MM_SERIAL_PORT_SEND_DELAY, (guint64) 0, + /* built-in echo removal conflicts with unsolicited _OWANCALL + * messages, which are not <CR><LF> prefixed. */ + MM_AT_SERIAL_PORT_REMOVE_ECHO, FALSE, + NULL); regex = g_regex_new ("\\r\\n\\+PACSP0\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, NULL, NULL, NULL); @@ -809,4 +814,3 @@ mm_modem_hso_class_init (MMModemHsoClass *klass) gsm_class->get_allowed_mode = get_allowed_mode; gsm_class->get_access_technology = get_access_technology; } - |