summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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