zte: Blacklist the NO CARRIER terminator for control channel
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Aug 2011 00:15:56 +0000 (02:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Aug 2011 00:15:56 +0000 (02:15 +0200)
The ZTE cards will send NO CARRIER to all channels. This confuses
setting device into offline mode while still having a data connection.

plugins/zte.c

index 08eb39c..307a98e 100644 (file)
@@ -187,6 +187,9 @@ static int zte_enable(struct ofono_modem *modem)
                return -EIO;
        }
 
+       g_at_chat_blacklist_terminator(data->aux,
+                                       G_AT_CHAT_TERMINATOR_NO_CARRIER);
+
        g_at_chat_send(data->modem, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);
        g_at_chat_send(data->aux, "ATE0 +CMEE=1", NULL, NULL, NULL, NULL);