diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-08-20 17:22:28 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-08-25 22:00:56 -0500 |
commit | 2a9a6ad79b4bfe5d83e938c929c229a930c513a8 (patch) | |
tree | 7b3b82b89d6330f62b636a27ea069240cbaa46f0 /plugins/mm-modem-nokia.c | |
parent | 7348b4c0c872a09103d32fe44cb4c2a086eaa66b (diff) |
nokia: use E1 E0 when initializing the modem
Passing E1 and E0 afterwards seems to properly disable the echo in Nokia modems
(N900 and C7 at least)
Diffstat (limited to 'plugins/mm-modem-nokia.c')
-rw-r--r-- | plugins/mm-modem-nokia.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/mm-modem-nokia.c b/plugins/mm-modem-nokia.c index 56f4c1b7..9476f615 100644 --- a/plugins/mm-modem-nokia.c +++ b/plugins/mm-modem-nokia.c @@ -120,6 +120,11 @@ get_property (GObject *object, guint prop_id, case MM_GENERIC_GSM_PROP_POWER_DOWN_CMD: g_value_set_string (value, ""); break; + case MM_GENERIC_GSM_PROP_INIT_CMD: + /* When initializing a Nokia phone, first enable the echo, + * and then disable it, so that we get it properly disabled */ + g_value_set_string (value, "Z E1 E0 V1"); + break; default: break; } @@ -136,6 +141,10 @@ mm_modem_nokia_class_init (MMModemNokiaClass *klass) object_class->set_property = set_property; g_object_class_override_property (object_class, + MM_GENERIC_GSM_PROP_INIT_CMD, + MM_GENERIC_GSM_INIT_CMD); + + g_object_class_override_property (object_class, MM_GENERIC_GSM_PROP_POWER_UP_CMD, MM_GENERIC_GSM_POWER_UP_CMD); |