From 882760d186f7b49b5681f7ddd1c296706eb80bd8 Mon Sep 17 00:00:00 2001 From: Sanket Agarwal Date: Fri, 20 Jan 2017 11:06:41 -0800 Subject: [PATCH] BTA HF CLIENT: Unset initial SCO value Initialize the block with invalid SCO state so that while allocating the if condition does not ignore the block. This was causing the stack to not initiate a SCO connection to the remote (AG role) Bug: b/33555377 Test: Check for SCO initialied on audio call Change-Id: I3f5619c69288483bfa45c2a1adcf22008e353841 --- bta/hf_client/bta_hf_client_main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/bta/hf_client/bta_hf_client_main.cc b/bta/hf_client/bta_hf_client_main.cc index b11eff456..3b915db07 100644 --- a/bta/hf_client/bta_hf_client_main.cc +++ b/bta/hf_client/bta_hf_client_main.cc @@ -310,6 +310,7 @@ void bta_hf_client_cb_init(tBTA_HF_CLIENT_CB* client_cb, uint16_t handle) { // Re allocate any variables required client_cb->collision_timer = alarm_new("bta_hf_client.scb_collision_timer"); client_cb->handle = handle; + client_cb->sco_idx = BTM_INVALID_SCO_INDEX; } /******************************************************************************* -- 2.11.0