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:
2cbb307
)
Fix: Ignore repeated CCWAs in atmodem as well
author
Denis Kenzior
<denkenz@gmail.com>
Mon, 16 Nov 2009 16:17:12 +0000
(10:17 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 16 Nov 2009 16:17:12 +0000
(10:17 -0600)
drivers/atmodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/voicecall.c
b/drivers/atmodem/voicecall.c
index
502a96a
..
1f8e0d1
100644
(file)
--- a/
drivers/atmodem/voicecall.c
+++ b/
drivers/atmodem/voicecall.c
@@
-794,6
+794,11
@@
static void ccwa_notify(GAtResult *result, gpointer user_data)
dump_response("ccwa_notify", TRUE, result);
+ /* Some modems resend CCWA, ignore it the second time around */
+ if (g_slist_find_custom(vd->calls, GINT_TO_POINTER(5),
+ at_util_call_compare_by_status))
+ return;
+
g_at_result_iter_init(&iter, result);
if (!g_at_result_iter_next(&iter, "+CCWA:"))