All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enabling PDP Context support in atmodem.
@ 2010-06-17 20:17 Arun Ravindran
  2010-06-18 17:57 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Arun Ravindran @ 2010-06-17 20:17 UTC (permalink / raw)
  To: ofono

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

From d30d8658767de97b0ffb45697616604fb1576741 Mon Sep 17 00:00:00 2001
From: arun <arunlee@gmail.com>
Date: Thu, 17 Jun 2010 21:42:00 +0300
Subject: [PATCH] Enabling PDP Context support in atmodem.

---
 plugins/atgen.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/plugins/atgen.c b/plugins/atgen.c
index 4e9c5e7..f3757fb 100644
--- a/plugins/atgen.c
+++ b/plugins/atgen.c
@@ -50,6 +50,8 @@
 #include <ofono/voicecall.h>

 #include <drivers/atmodem/sim-poll.h>
+#include <ofono/gprs.h>
+#include <ofono/gprs-context.h>

 static const char *tty_opts[] = {
     "Baud",
@@ -175,6 +177,8 @@ static void atgen_post_sim(struct ofono_modem *modem)
 {
     GAtChat *chat = ofono_modem_get_data(modem);
     struct ofono_message_waiting *mw;
+    struct ofono_gprs *gprs;
+    struct ofono_gprs_context *gc;

     DBG("%p", modem);

@@ -187,6 +191,11 @@ static void atgen_post_sim(struct ofono_modem *modem)
     ofono_ssn_create(modem, 0, "atmodem", chat);
     ofono_sms_create(modem, 0, "atmodem", chat);
     ofono_phonebook_create(modem, 0, "atmodem", chat);
+    gprs = ofono_gprs_create(modem,0, "atmodem", chat);
+    gc = ofono_gprs_context_create(modem, 0, "atmodem", chat);
+
+    if (gprs && gc)
+        ofono_gprs_add_context(gprs, gc);

     mw = ofono_message_waiting_create(modem);
     if (mw)
-- 
1.6.3.3

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1660 bytes --]

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

end of thread, other threads:[~2010-06-19 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 20:17 [PATCH] Enabling PDP Context support in atmodem Arun Ravindran
2010-06-18 17:57 ` Denis Kenzior
2010-06-19 14:53   ` Arun Ravindran

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.