From 3eaf753c7f5c21b8a6ef589b03d6181318b2b8eb Mon Sep 17 00:00:00 2001 From: Thomas Grenman Date: Thu, 30 Jun 2011 15:51:53 -0500 Subject: [PATCH] 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. --- src/mm-generic-gsm.c | 8 ++++---- 1 file 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);