sierra: Initialize GSM error reporting separately
authorForest Bond <forest.bond@rapidrollout.com>
Fri, 28 Dec 2012 19:36:00 +0000 (14:36 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 31 Dec 2012 02:35:58 +0000 (20:35 -0600)
plugins/sierra.c

index 4e125d7..a458e38 100644 (file)
@@ -144,8 +144,9 @@ static int sierra_enable(struct ofono_modem *modem)
        if (data->modem == NULL)
                return -EINVAL;
 
-       g_at_chat_send(data->modem, "ATE0 &C0 +CMEE=1", NULL,
-                                               NULL, NULL, NULL);
+       g_at_chat_send(data->modem, "ATE0 &C0", NULL, NULL, NULL, NULL);
+       /* This is separate because it is not supported by all modems. */
+       g_at_chat_send(data->modem, "AT+CMEE=1", NULL, NULL, NULL, NULL);
 
        g_at_chat_send(data->modem, "AT+CFUN=4", none_prefix,
                                        cfun_enable, modem, NULL);