Fix update hfp_hangup to release active call

In HFP, AT+CHUP is intended to release the current active call.
This commit is contained in:
Zhenhua Zhang 2009-12-08 18:13:09 +08:00 committed by Denis Kenzior
parent ee1e9d14bd
commit bd81a13493
1 changed files with 2 additions and 2 deletions

View File

@ -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,