diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-07-25 03:48:25 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-25 03:48:25 +0200 |
commit | c6ee139f67d6c6e404ac3675fd535e1b9a1c7ec4 (patch) | |
tree | 294d7cbb821f05ca9b1949fa105de7e424fd4d45 /plugins/novatel.c | |
parent | 0471e3ec8de0e2e1dd77d003fe8d184128b6a109 (diff) | |
download | ofono-c6ee139f67d6c6e404ac3675fd535e1b9a1c7ec4.tar.bz2 |
novatel: Blacklist the NO CARRIER terminator for control channel
The Novatel 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/novatel.c')
-rw-r--r-- | plugins/novatel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/novatel.c b/plugins/novatel.c index c794b6b1..f125aad9 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -212,6 +212,9 @@ static int novatel_enable(struct ofono_modem *modem) if (data->primary == NULL) return -EIO; + g_at_chat_blacklist_terminator(data->primary, + G_AT_CHAT_TERMINATOR_NO_CARRIER); + g_at_chat_send(data->primary, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL); |