Skip to contentSkip to conversation

Fix: Handle callsetup=0 when no waiting or dialing call

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 Fix: Handle callsetup=0 when no waiting or dialing call

When call=1 and callsetup=0, if no waiting or dialing call, the call is active and no need to notify status change.

---
 drivers/hfpmodem/voicecall.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/hfpmodem/voicecall.c +0 -0
index 52bec36..ba4b4d5 100644
@@ -767,6 +767,11 @@ static void ciev_callsetup_notify(struct

ofono_voicecall *vc,
goto out;
}

+ /* If call=1 and no call is waiting or dialing, the call
+ * is active. */
+ if (waiting == NULL && dialing == NULL)
+ goto out;
+
/*
* If call=1, in the waiting case we have to poll, since we
* have no idea whether a waiting call gave up or we accepted

Signature · 1 line
1.6.2.5
#1 lore raw

Hi Zhenhua,

Quoted 2 lines

When call=1 and callsetup=0, if no waiting or dialing call, the call is active and no need to notify status change.

This one has been applied. Thanks.

Regards,
-Denis