summaryrefslogtreecommitdiffstats
path: root/drivers/hfpmodem/voicecall.c
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2009-12-08 18:13:09 +0800
committerDenis Kenzior <denkenz@gmail.com>2009-12-08 04:29:14 -0600
commitbd81a134931b6933894a169396824448b93467a7 (patch)
treea50df19238f7cbbbda3a53f79762eed74466819f /drivers/hfpmodem/voicecall.c
parentee1e9d14bde006da64d3e9d0c1f61523f113869a (diff)
downloadofono-bd81a134931b6933894a169396824448b93467a7.tar.bz2
Fix update hfp_hangup to release active call
In HFP, AT+CHUP is intended to release the current active call.
Diffstat (limited to 'drivers/hfpmodem/voicecall.c')
-rw-r--r--drivers/hfpmodem/voicecall.c4
1 files changed, 2 insertions, 2 deletions
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,