From c2b3d3956689ffcd6893bbbf9c247776ef9685b0 Mon Sep 17 00:00:00 2001 From: Arun Ravindran Date: Tue, 5 Apr 2011 12:32:53 +0300 Subject: [PATCH] isimodem: Fix false reporting of active call state --- drivers/isimodem/voicecall.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c index 5cbba1fe..05f7c094 100644 --- a/drivers/isimodem/voicecall.c +++ b/drivers/isimodem/voicecall.c @@ -405,7 +405,6 @@ static int isi_call_status_to_clcc(const struct isi_call *call) case CALL_STATUS_TERMINATED: return 6; - case CALL_STATUS_ANSWERED: case CALL_STATUS_ACTIVE: case CALL_STATUS_HOLD_INITIATED: return 0; @@ -551,6 +550,10 @@ static void isi_call_notify(struct ofono_voicecall *ovc, struct isi_call *call) case CALL_STATUS_MT_RELEASE: case CALL_STATUS_TERMINATED: isi_call_set_disconnect_reason(call); + break; + case CALL_STATUS_ANSWERED: + DBG("State need not be reported to Core"); + return; } ocall = isi_call_as_ofono_call(call);