All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cdmamodem: Disable dormant mode at initialization
@ 2011-12-09 11:04 Guillaume Zajac
  2011-12-09 11:37 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Zajac @ 2011-12-09 11:04 UTC (permalink / raw)
  To: ofono

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

---
 drivers/cdmamodem/connman.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/drivers/cdmamodem/connman.c b/drivers/cdmamodem/connman.c
index c03841e..61573ff 100644
--- a/drivers/cdmamodem/connman.c
+++ b/drivers/cdmamodem/connman.c
@@ -276,6 +276,20 @@ static void at_c0_cb(gboolean ok, GAtResult *result, gpointer user_data)
 	ofono_cdma_connman_register(cm);
 }
 
+static void at_cta0_cb(gboolean ok, GAtResult *result, gpointer user_data)
+{
+	struct ofono_cdma_connman *cm = user_data;
+
+	DBG("ok %d", ok);
+
+	if (ok == FALSE) {
+		ofono_info("Unable to configure Dormant mode");
+		return;
+	}
+
+	ofono_cdma_connman_dormant_notify(cm, FALSE);
+}
+
 static int cdma_connman_probe(struct ofono_cdma_connman *cm,
 					unsigned int vendor, void *data)
 {
@@ -300,6 +314,7 @@ static int cdma_connman_probe(struct ofono_cdma_connman *cm,
 	ofono_cdma_connman_set_data(cm, cd);
 
 	g_at_chat_send(cd->chat, "AT&C0", none_prefix, at_c0_cb, cm, NULL);
+	g_at_chat_send(cd->chat, "AT+CTA=0", none_prefix, at_cta0_cb, cm, NULL);
 
 	return 0;
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-09 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 11:04 [PATCH] cdmamodem: Disable dormant mode at initialization Guillaume Zajac
2011-12-09 11:37 ` Denis Kenzior

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.