projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c204da
)
zte: Blacklist the NO CARRIER terminator for control channel
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 4 Aug 2011 00:15:56 +0000
(
02:15
+0200)
committer
Marcel 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
patch
|
blob
|
history
diff --git
a/plugins/zte.c
b/plugins/zte.c
index
08eb39c
..
307a98e
100644
(file)
--- 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);