Skip to contentSkip to conversation

Fix: Ignore repeated CCWA notify if have

PATCH Applied Zhenhua Zhang 2 participants 2 messages Nov 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 Fix: Ignore repeated CCWA notify if have

Some phone like iPhone repeats CCWA notify. So we need to ignore it when we already have waiting call.

---
 drivers/hfpmodem/voicecall.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/hfpmodem/voicecall.c +0 -0
index 53d4fd1..689597d 100644
@@ -450,6 +450,12 @@ static void ccwa_notify(GAtResult *result, gpointer

user_data)

dump_response("ccwa_notify", TRUE, result);

+ /* CCWA can repeat, ignore if we already have an waiting call */
+ if (g_slist_find_custom(vd->calls,
+ GINT_TO_POINTER(CALL_STATUS_WAITING),
+ at_util_call_compare_by_status))
+ return;
+
g_at_result_iter_init(&iter, result);

if (!g_at_result_iter_next(&iter, "+CCWA:"))

Signature · 1 line
1.6.2.5
#1 lore raw

Hi Zhenhua,

Quoted 2 lines

Some phone like iPhone repeats CCWA notify. So we need to ignore it when we already have waiting call.

Applied. Thanks.

Regards,
-Denis