diff options
author | Forest Bond <forest.bond@rapidrollout.com> | 2013-03-28 17:00:40 -0400 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-04-01 21:42:44 -0500 |
commit | 692e59f1086738b7b82b282af1f0129a49ae2673 (patch) | |
tree | 7696abb5dfdc2af3ae3193681c9103c7501d9ee3 /plugins | |
parent | 0e0eb227f231e6189f768de3dcbb6fa63e6fca3b (diff) | |
download | ofono-692e59f1086738b7b82b282af1f0129a49ae2673.tar.bz2 |
huawei: Use AlwaysOnline for CDMA modems
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/huawei.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 5d8875ad..59995b30 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -447,6 +447,13 @@ static void sysinfo_enable_cb(gboolean ok, GAtResult *result, g_at_chat_send(data->pcui, "AT^CVOICE=?", cvoice_prefix, cvoice_support_cb, modem, NULL); + /* For CDMA we use AlwaysOnline so we leave the modem online. */ + if (data->have_gsm == FALSE && data->have_cdma == TRUE) { + ofono_modem_set_boolean(modem, "AlwaysOnline", TRUE); + ofono_modem_set_powered(modem, TRUE); + return; + } + if (g_at_chat_send(data->pcui, data->offline_command, none_prefix, cfun_offline, modem, NULL) > 0) return; |