All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] speedup: delay sending on &C0 to disable data carrier detect.
@ 2011-07-28  9:17 Bertrand Aygon
  0 siblings, 0 replies; only message in thread
From: Bertrand Aygon @ 2011-07-28  9:17 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]

---
 plugins/speedup.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/plugins/speedup.c b/plugins/speedup.c
index a7aa43c..7d42320 100644
--- a/plugins/speedup.c
+++ b/plugins/speedup.c
@@ -130,6 +130,10 @@ static void sim_state_cb(gboolean present, gpointer user_data)
 	at_util_sim_state_query_free(data->sim_state_query);
 	data->sim_state_query = NULL;
 
+	/* 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);
+
 	data->have_sim = present;
 
 	ofono_modem_set_powered(modem, TRUE);
@@ -174,8 +178,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=4", NULL,
 					cfun_enable, modem, NULL);
-- 
1.7.4.1

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-28  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28  9:17 [PATCH] speedup: delay sending on &C0 to disable data carrier detect Bertrand Aygon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.