summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2009-11-16 22:10:54 +0800
committerDenis Kenzior <denkenz@gmail.com>2009-11-16 11:09:21 -0600
commit5e1067b8a286ad6c734d33de1db57f1256142f12 (patch)
treea8d51bff3ab265d3a3ef2d09b9840f7c7740fe40
parentf6d139775325fc400ea3464f755e9587e5dc6232 (diff)
downloadofono-5e1067b8a286ad6c734d33de1db57f1256142f12.tar.bz2
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.
-rw-r--r--drivers/hfpmodem/voicecall.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 85cd94e3..bc65d649 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