From b68fb125b80b98142245b1f5a2db0882a1667cfa Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 16 Dec 2010 18:33:19 -0600 Subject: [PATCH] atmodem: Always poll clcc, even if cring + clip Even in the case of CRING and CLIP being used, we should start a CLCC poll. This is because we must still rely on polling CLCC to detect when an incoming call has been terminated by the remote side. --- drivers/atmodem/voicecall.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c index 4c9fc262..75e0c939 100644 --- a/drivers/atmodem/voicecall.c +++ b/drivers/atmodem/voicecall.c @@ -769,14 +769,6 @@ static void clip_notify(GAtResult *result, gpointer user_data) ofono_voicecall_notify(vc, call); vd->flags &= ~FLAG_NEED_CLIP; - - /* We started a CLCC, but the CLIP arrived and the call type - * is known. If we don't need to poll, cancel the GSource - */ - if (call->type != 9 && vd->clcc_source) { - g_source_remove(vd->clcc_source); - vd->clcc_source = 0; - } } static void cnap_notify(GAtResult *result, gpointer user_data)