diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-04 02:15:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-04 02:15:56 +0200 |
commit | a7d7d24e4e4a05d9a969c7ade6a19ddfb0769951 (patch) | |
tree | 2e130fed5c1d9eacc4506d0a1476f6ba11a7e987 /plugins/zte.c | |
parent | 7c204dafe90007e81674be917e4421e023db08af (diff) | |
download | ofono-a7d7d24e4e4a05d9a969c7ade6a19ddfb0769951.tar.bz2 |
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.
Diffstat (limited to 'plugins/zte.c')
-rw-r--r-- | plugins/zte.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |