From bd81a134931b6933894a169396824448b93467a7 Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Tue, 8 Dec 2009 18:13:09 +0800 Subject: Fix update hfp_hangup to release active call In HFP, AT+CHUP is intended to release the current active call. --- drivers/hfpmodem/voicecall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/hfpmodem/voicecall.c') diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index 6693280f..17811d60 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, -- cgit v1.2.3