summaryrefslogtreecommitdiffstats
path: root/drivers/calypsomodem/voicecall.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/calypsomodem/voicecall.c')
-rw-r--r--drivers/calypsomodem/voicecall.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c
index 05bae893..a669cb7e 100644
--- a/drivers/calypsomodem/voicecall.c
+++ b/drivers/calypsomodem/voicecall.c
@@ -119,12 +119,18 @@ static void calypso_answer(struct ofono_voicecall *vc,
calypso_template(vc, "ATA", cb, data);
}
-static void calypso_hangup(struct ofono_voicecall *vc,
+static void calypso_ath(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
calypso_template(vc, "ATH", cb, data);
}
+static void calypso_chup(struct ofono_voicecall *vc,
+ ofono_voicecall_cb_t cb, void *data)
+{
+ calypso_template(vc, "AT+CHUP", cb, data);
+}
+
static void calypso_hold_all_active(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
@@ -409,7 +415,8 @@ static struct ofono_voicecall_driver driver = {
.remove = calypso_voicecall_remove,
.dial = calypso_dial,
.answer = calypso_answer,
- .hangup_active = calypso_hangup,
+ .hangup_all = calypso_ath,
+ .hangup_active = calypso_chup,
.hold_all_active = calypso_hold_all_active,
.release_all_held = calypso_release_all_held,
.set_udub = calypso_set_udub,