diff options
author | Thomas Grenman <tgrenman@aalto.fi> | 2011-06-30 15:51:53 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-06-30 15:51:53 -0500 |
commit | 3eaf753c7f5c21b8a6ef589b03d6181318b2b8eb (patch) | |
tree | 7de67c383cb13e1958c92a894a13818790aac185 | |
parent | 7762d401e8201efc05d643b9da32f3e60a42c470 (diff) |
gsm: set SMS storage location before enabling notifications
Fixes a firmware hang on Option GlobeTrotter Express (GE0201 with
firmware 1.12.1Hd (Date: Feb 22 2007, Time: 09:20:28)) and makes
sense in general too.
-rw-r--r-- | src/mm-generic-gsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 95540590..c8cf7db4 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -1477,14 +1477,14 @@ mm_generic_gsm_enable_complete (MMGenericGsm *self, mm_at_serial_port_queue_command (priv->primary, cmd, 3, NULL, NULL); g_free (cmd); - /* Enable SMS notifications */ - g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_SMS_INDICATION_ENABLE_CMD, &cmd, NULL); + /* Set SMS storage locations */ + g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_SMS_STORAGE_LOCATION_CMD, &cmd, NULL); if (cmd && strlen (cmd)) mm_at_serial_port_queue_command (priv->primary, cmd, 3, NULL, NULL); g_free (cmd); - /* Set SMS storage locations */ - g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_SMS_STORAGE_LOCATION_CMD, &cmd, NULL); + /* Enable SMS notifications */ + g_object_get (G_OBJECT (info->modem), MM_GENERIC_GSM_SMS_INDICATION_ENABLE_CMD, &cmd, NULL); if (cmd && strlen (cmd)) mm_at_serial_port_queue_command (priv->primary, cmd, 3, NULL, NULL); g_free (cmd); |