From b7b37c4738180b589aabc904402657ec5cc518b9 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 3 Jun 2011 12:28:14 +0200 Subject: [PATCH] iridium: override SMS indications setup commands --- plugins/mm-modem-iridium-gsm.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/plugins/mm-modem-iridium-gsm.c b/plugins/mm-modem-iridium-gsm.c index 7d2f3902..dce0dae6 100644 --- a/plugins/mm-modem-iridium-gsm.c +++ b/plugins/mm-modem-iridium-gsm.c @@ -90,6 +90,25 @@ get_property (GObject *object, */ g_value_set_string (value, "&K3"); break; + case MM_GENERIC_GSM_PROP_SMS_INDICATION_ENABLE_CMD: + /* AT+CNMO=,[[,[,[,]]]] + * but can only be 0, + * and can only be either 0 or 1 + * + * Note: Modem may return +CMS ERROR:322, which indicates Memory Full, + * not a big deal + */ + g_value_set_string (value, "+CNMI=2,1,0,0,1"); + break; + case MM_GENERIC_GSM_PROP_SMS_STORAGE_LOCATION_CMD: + /* AT=CPMS=[,[,]] + * Only "SM" is allowed in all 3 message storages + * + * Note: Modem may return +CMS ERROR:322, which indicates Memory Full, + * not a big deal + */ + g_value_set_string (value, "+CPMS=\"SM\",\"SM\",\"SM\""); + break; default: break; } @@ -119,6 +138,14 @@ mm_modem_iridium_gsm_class_init (MMModemIridiumGsmClass *klass) MM_GENERIC_GSM_PROP_FLOW_CONTROL_CMD, MM_GENERIC_GSM_FLOW_CONTROL_CMD); + g_object_class_override_property (object_class, + MM_GENERIC_GSM_PROP_SMS_INDICATION_ENABLE_CMD, + MM_GENERIC_GSM_SMS_INDICATION_ENABLE_CMD); + + g_object_class_override_property (object_class, + MM_GENERIC_GSM_PROP_SMS_STORAGE_LOCATION_CMD, + MM_GENERIC_GSM_SMS_STORAGE_LOCATION_CMD); + gsm_class->get_sim_iccid = get_sim_iccid; }