diff options
author | Bertrand Aygon <bertrand.aygon@intel.com> | 2011-07-28 16:16:10 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-28 22:09:49 +0200 |
commit | e233d871047c8e1ca0d713546dd595b91fbf0299 (patch) | |
tree | dc71606b1bd18e093625e5d51c10e7a08bf819a2 /plugins/speedup.c | |
parent | 9527bfb9af0c138a6e667d87b78981b240cb0629 (diff) | |
download | ofono-e233d871047c8e1ca0d713546dd595b91fbf0299.tar.bz2 |
speedup: delay &C0.
Diffstat (limited to 'plugins/speedup.c')
-rw-r--r-- | plugins/speedup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/speedup.c b/plugins/speedup.c index f959e12f..16ae4fa2 100644 --- a/plugins/speedup.c +++ b/plugins/speedup.c @@ -131,6 +131,10 @@ static void sim_state_cb(gboolean present, gpointer user_data) data->have_sim = present; ofono_modem_set_powered(modem, TRUE); + + /* AT&C0 needs to be send separate and on both channel */ + g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL); + g_at_chat_send(data->aux, "AT&C0", NULL, NULL, NULL, NULL); } static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data) @@ -172,8 +176,8 @@ static int speedup_enable(struct ofono_modem *modem) return -EIO; } - g_at_chat_send(data->modem, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL); - g_at_chat_send(data->aux, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL); + 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); g_at_chat_send(data->aux, "AT+CFUN=1", NULL, cfun_enable, modem, NULL); |