From 30cc6d6f4b6a153a90c4a8447cdf34b6e2e680e2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 28 Oct 2009 23:40:04 -0500 Subject: [PATCH] Fix: This hack is no longer necessary --- drivers/hfpmodem/voicecall.c | 45 +------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c index 1d26b0e..ebee667 100644 --- a/drivers/hfpmodem/voicecall.c +++ b/drivers/hfpmodem/voicecall.c @@ -244,49 +244,6 @@ static void hfp_hangup(struct ofono_voicecall *vc, hfp_template("AT+CHUP", vc, generic_cb, 0x3f, cb, data); } -static void release_id_cb(gboolean ok, GAtResult *result, - gpointer user_data) -{ - struct release_id_req *req = user_data; - struct voicecall_data *vd = ofono_voicecall_get_data(req->vc); - struct ofono_error error; - - dump_response("release_id_cb", ok, result); - decode_at_error(&error, g_at_result_final_response(result)); - - if (ok) - vd->local_release = 0x1 << req->id; - - req->cb(&error, req->data); -} - -static void hfp_release_specific(struct ofono_voicecall *vc, int id, - ofono_voicecall_cb_t cb, void *data) -{ - struct voicecall_data *vd = ofono_voicecall_get_data(vc); - struct release_id_req *req = g_try_new0(struct release_id_req, 1); - - if (!req) - goto error; - - req->vc = vc; - req->cb = cb; - req->data = data; - req->id = id; - - if (vd->mpty_call == FALSE) - g_at_chat_send(vd->chat, "AT+CHUP", none_prefix, - release_id_cb, req, g_free); - - return; - -error: - if (req) - g_free(req); - - CALLBACK_WITH_FAILURE(cb, data); -} - static void ring_notify(GAtResult *result, gpointer user_data) { struct ofono_voicecall *vc = user_data; @@ -584,7 +541,7 @@ static struct ofono_voicecall_driver driver = { .release_all_held = NULL, .set_udub = NULL, .release_all_active = NULL, - .release_specific = hfp_release_specific, + .release_specific = NULL, .private_chat = NULL, .create_multiparty = NULL, .transfer = NULL, -- 2.7.4