diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-16 10:17:12 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-16 10:17:12 -0600 |
commit | bfc9eb302f93f824df72ef524d3451f99c54a357 (patch) | |
tree | 6761a8abd689b7d2d67b32f249690b44c90bae11 | |
parent | 2cbb307013d1a9104f0090c32157bf4d9487e183 (diff) | |
download | ofono-bfc9eb302f93f824df72ef524d3451f99c54a357.tar.bz2 |
Fix: Ignore repeated CCWAs in atmodem as well
-rw-r--r-- | drivers/atmodem/voicecall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c index 502a96af..1f8e0d16 100644 --- 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:")) |