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

Zhenhua Zhang zhenhua.zhang at intel.com
Mon Nov 16 06:10:54 PST 2009


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(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 52bec36..ba4b4d5 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -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
-- 
1.6.2.5





More information about the ofono mailing list