From a7d7d24e4e4a05d9a969c7ade6a19ddfb0769951 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 4 Aug 2011 02:15:56 +0200 Subject: zte: Blacklist the NO CARRIER terminator for control channel 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/zte.c') diff --git a/plugins/zte.c b/plugins/zte.c index 08eb39c8..307a98eb 100644 --- a/plugins/zte.c +++ b/plugins/zte.c @@ -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); -- cgit v1.2.3