[PATCH 2/2] Fix update hfp_hangup to release active call

Zhenhua Zhang zhenhua.zhang at intel.com
Tue Dec 8 02:13:09 PST 2009


In HFP, AT+CHUP is intended to release the current active call.
---
 drivers/hfpmodem/voicecall.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 6693280..17811d6 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -393,8 +393,8 @@ static void hfp_answer(struct ofono_voicecall *vc,
 static void hfp_hangup(struct ofono_voicecall *vc,
 			ofono_voicecall_cb_t cb, void *data)
 {
-	/* Hangup all calls */
-	hfp_template("AT+CHUP", vc, generic_cb, 0x3f, cb, data);
+	/* Hangup current active call */
+	hfp_template("AT+CHUP", vc, generic_cb, 0x1, cb, data);
 }
 
 static void hfp_hold_all_active(struct ofono_voicecall *vc,
-- 
1.6.5.2



More information about the ofono mailing list