projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14c116b
)
Register for CGEV indications in gprs context
author
Denis Kenzior
<denis.kenzior@intel.com>
Fri, 23 Oct 2009 17:14:47 +0000
(12:14 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 23 Oct 2009 22:05:56 +0000
(17:05 -0500)
drivers/atmodem/gprs-context.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/gprs-context.c
b/drivers/atmodem/gprs-context.c
index
3cd9ec2
..
2bc3cdf
100644
(file)
--- a/
drivers/atmodem/gprs-context.c
+++ b/
drivers/atmodem/gprs-context.c
@@
-108,6
+108,8
@@
static void at_cgdcont_cb(gboolean ok, GAtResult *result, gpointer user_data)
if (ncbd)
g_free(ncbd);
+ gcd->active_context = 0;
+
CALLBACK_WITH_FAILURE(cb, cbd->data);
}
@@
-236,6
+238,8
@@
static int at_gprs_context_probe(struct ofono_gprs_context *gc,
gcd = g_new0(struct gprs_context_data, 1);
gcd->chat = chat;
+ g_at_chat_register(gcd->chat, "+CGEV:", cgev_notify, FALSE, gc, NULL);
+
ofono_gprs_context_set_data(gc, gcd);
return 0;