diff options
author | Dan Williams <dcbw@redhat.com> | 2010-04-07 15:11:32 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-04-07 15:11:32 -0700 |
commit | b51a9d27e5a793b4e33bfdd7999e7204c408f154 (patch) | |
tree | d4a042d43e29b746126dd134f10147e9692a10fa | |
parent | 7aeac2f64628cb99ad35e113c36cc69df6aa9a07 (diff) |
gsm: don't require +CMEE=1 success
Some devices apparently don't like it (even though it's required
in the standards) and since we can deal without it, don't require
+CMEE=1 to complete successfully.
-rw-r--r-- | src/mm-generic-gsm.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 1932d51c..66ebc489 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -868,9 +868,14 @@ init_done (MMAtSerialPort *port, } /* Ensure echo is off after the init command; some modems ignore the - * E0 when it's in the same like as ATZ (Option GIO322). - */ - mm_at_serial_port_queue_command (port, "E0 +CMEE=1", 2, NULL, NULL); + * E0 when it's in the same line as ATZ (Option GIO322). + */ + mm_at_serial_port_queue_command (port, "E0", 2, NULL, NULL); + + /* Some phones (like Blackberries) don't support +CMEE=1, so make it + * optional. It completely violates 3GPP TS 27.007 (9.1) but what can we do... + */ + mm_at_serial_port_queue_command (port, "+CMEE=1", 2, NULL, NULL); g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_INIT_CMD_OPTIONAL, &cmd, NULL); mm_at_serial_port_queue_command (port, cmd, 2, NULL, NULL); @@ -3497,7 +3502,7 @@ get_property (GObject *object, guint prop_id, g_value_set_string (value, ""); break; case MM_GENERIC_GSM_PROP_INIT_CMD: - g_value_set_string (value, "Z E0 V1 +CMEE=1"); + g_value_set_string (value, "Z E0 V1"); break; case MM_GENERIC_GSM_PROP_INIT_CMD_OPTIONAL: g_value_set_string (value, "X4 &C1"); |