summaryrefslogtreecommitdiffstats
path: root/drivers/isimodem
diff options
context:
space:
mode:
authorArun Ravindran <ext-arun.1.ravindran@nokia.com>2011-04-05 12:32:53 +0300
committerAki Niemi <aki.niemi@nokia.com>2011-04-07 10:59:18 +0300
commitc2b3d3956689ffcd6893bbbf9c247776ef9685b0 (patch)
treeda4d5c77f982f75c26a5edd64bd5610f13bd2eba /drivers/isimodem
parent9ddc98cd2f0d89458f064dfbd21780ba608c80dd (diff)
downloadofono-c2b3d3956689ffcd6893bbbf9c247776ef9685b0.tar.bz2
isimodem: Fix false reporting of active call state
Diffstat (limited to 'drivers/isimodem')
-rw-r--r--drivers/isimodem/voicecall.c5
1 files changed, 4 insertions, 1 deletions
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);