From 5e1067b8a286ad6c734d33de1db57f1256142f12 Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Mon, 16 Nov 2009 22:10:54 +0800 Subject: [PATCH] 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 file changed, 5 insertions(+) diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index 85cd94e..bc65d64 100644 --- a/drivers/hfpmodem/voicecall.c +++ b/drivers/hfpmodem/voicecall.c @@ -776,6 +776,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 -- 2.7.4