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:
2888e7f
)
Fix +CGEV: parsing
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Tue, 10 Nov 2009 06:31:07 +0000
(07:31 +0100)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 10 Nov 2009 18:48:08 +0000
(12:48 -0600)
drivers/atmodem/gprs.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/gprs.c
b/drivers/atmodem/gprs.c
index
242086c
..
7aaa51a
100644
(file)
--- a/
drivers/atmodem/gprs.c
+++ b/
drivers/atmodem/gprs.c
@@
-192,14
+192,16
@@
static void cgev_notify(GAtResult *result, gpointer user_data)
GAtResultIter iter;
const char *event;
+ g_at_result_iter_init(&iter, result);
+
if (!g_at_result_iter_next(&iter, "+CGEV:"))
return;
if (!g_at_result_iter_next_unquoted_string(&iter, &event))
return;
- if (g_str_
has_prefix(event, "NW DETACH
") ||
- g_str_
has_prefix(event, "ME DETACH
")) {
+ if (g_str_
equal(event, "NW DETACH
") ||
+ g_str_
equal(event, "ME DETACH
")) {
ofono_gprs_detached_notify(gprs);
return;
}