Fix: Handle callsetup=0 when no waiting or dialing call
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
@@ -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
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