OSDN Git Service

DO NOT MERGE ANYWHERE Do not update sco_state when no matching peer_addr is found
authorLianchao Song <songlianchao@huawei.com>
Wed, 23 Mar 2016 03:03:19 +0000 (11:03 +0800)
committerChenjie Luo <cjluo@google.com>
Mon, 11 Apr 2016 17:25:21 +0000 (17:25 +0000)
commit5130f53a3c5be77c022a34c5cc8eb90868fa5647
tree7701d04f10562f2fe0535dba0894f7f064b1f22e
parentdebb9bfc106a9e8085568f56f9656185f969618e
DO NOT MERGE ANYWHERE Do not update sco_state when no matching peer_addr is found

In the bta_hf_client_sco_conn_cback function, sco_state should not be set to
BTA_HF_CLIENT_SCO_SHUTDOWN_ST when no matched peer_addr found, so that it
can handle BTA_HF_CLIENT_SCO_OPEN_E event later.

Bug: 26416310
Change-Id: I4540230c792490f79e4cca24cb4b34a1c383422f
Signed-off-by: m00230717 <m00230717@notesmail.huawei.com>
bta/hf_client/bta_hf_client_sco.c