diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-05-16 16:12:12 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-06 17:20:17 +0200 |
commit | 9578e1b9cab988b11bf9a4cd1af3842cdfb1eb28 (patch) | |
tree | ecc0dafbbf4ed7d907edd697856c77b89c65b013 | |
parent | de5eb41a705c7ece08a4f5f6fdee8c2e3cfcedc0 (diff) |
cinterion: override CMER enabling command
-rw-r--r-- | plugins/mm-modem-cinterion-gsm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/mm-modem-cinterion-gsm.c b/plugins/mm-modem-cinterion-gsm.c index 495a05d9..0fd18be3 100644 --- a/plugins/mm-modem-cinterion-gsm.c +++ b/plugins/mm-modem-cinterion-gsm.c @@ -948,6 +948,13 @@ get_property (GObject *object, * */ g_value_set_string (value, "+CPMS=\"ME\",\"ME\""); break; + case MM_GENERIC_GSM_PROP_CMER_ENABLE_CMD: + /* AT=CMER=[<mode>[,<keyp>[,<disp>[,<ind>[,<bfr>]]]]] + * but <ind> should be either not set, or equal to 0 or 2. + * Enabled with 2. + * */ + g_value_set_string (value, "+CMER=3,0,0,2"); + break; default: break; } @@ -995,6 +1002,10 @@ mm_modem_cinterion_gsm_class_init (MMModemCinterionGsmClass *klass) MM_GENERIC_GSM_PROP_SMS_STORAGE_LOCATION_CMD, MM_GENERIC_GSM_SMS_STORAGE_LOCATION_CMD); + g_object_class_override_property (object_class, + MM_GENERIC_GSM_PROP_CMER_ENABLE_CMD, + MM_GENERIC_GSM_CMER_ENABLE_CMD); + gsm_class->do_enable_power_up_done = do_enable_power_up_done; gsm_class->set_allowed_mode = set_allowed_mode; gsm_class->get_allowed_mode = get_allowed_mode; |