* [PATCH] telephony-ofono: fix handling of telephony_key_press_req
@ 2011-03-23 15:42 Luiz Augusto von Dentz
2011-03-24 9:16 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2011-03-23 15:42 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
---
audio/telephony-ofono.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c
index ef4ede7..6f5685b 100644
--- a/audio/telephony-ofono.c
+++ b/audio/telephony-ofono.c
@@ -579,19 +579,17 @@ void telephony_nr_and_ec_req(void *telephony_device, gboolean enable)
void telephony_key_press_req(void *telephony_device, const char *keys)
{
- struct voice_call *active, *waiting;
+ struct voice_call *active, *incoming;
int err;
DBG("telephony-ofono: got key press request for %s", keys);
- waiting = find_vc_with_status(CALL_STATUS_INCOMING);
- if (!waiting)
- waiting = find_vc_with_status(CALL_STATUS_DIALING);
+ incoming = find_vc_with_status(CALL_STATUS_INCOMING);
active = find_vc_with_status(CALL_STATUS_ACTIVE);
- if (waiting)
- err = answer_call(waiting);
+ if (incoming)
+ err = answer_call(incoming);
else if (active)
err = release_call(active);
else
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 15:42 [PATCH] telephony-ofono: fix handling of telephony_key_press_req Luiz Augusto von Dentz
2011-03-24 9:16 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox