Return-Path: From: Will Wang To: marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com Cc: linux-bluetooth@vger.kernel.org, Will Wang Subject: [PATCH v2 3/3] android/handsfree: Fix missing HFP WBS callback Date: Fri, 28 Aug 2015 18:40:30 +0800 Message-Id: <1440758430-24935-4-git-send-email-wiwang@mozilla.com> In-Reply-To: <1440758430-24935-1-git-send-email-wiwang@mozilla.com> References: <1440758430-24935-1-git-send-email-wiwang@mozilla.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/handsfree.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/handsfree.c b/android/handsfree.c index f297926..919728e 100644 --- a/android/handsfree.c +++ b/android/handsfree.c @@ -1067,6 +1067,7 @@ static void at_cmd_bcs(struct hfp_context *result, enum hfp_gw_cmd_type type, void *user_data) { struct hf_device *dev = user_data; + struct hal_ev_handsfree_wbs ev; unsigned int val; DBG(""); @@ -1085,6 +1086,13 @@ static void at_cmd_bcs(struct hfp_context *result, enum hfp_gw_cmd_type type, break; } + ev.wbs = val; + bdaddr2android(&dev->bdaddr, ev.bdaddr); + + ipc_send_notif(hal_ipc, HAL_SERVICE_ID_HANDSFREE, + HAL_EV_HANDSFREE_WBS, sizeof(ev), &ev); + + dev->proposed_codec = 0; dev->negotiated_codec = val; -- 1.9.1