OSDN Git Service

DO NOT MERGE ANYWHERE Do not update sco_state when no matching peer_addr is found
authorZheng Zhang <zhzh@google.com>
Wed, 23 Mar 2016 03:03:19 +0000 (11:03 +0800)
committerZheng Zhang <zhzh@google.com>
Mon, 12 Dec 2016 17:56:59 +0000 (17:56 +0000)
commit3e1402c31c207becba7019537bcc6b402ebc389e
tree73d6165d386af78518cb830f4a50bf358591df03
parentc5bae3277992bab4b41270eda17ac77e7d240b28
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
(cherry-picked from 2dfcbda49f694fcf1355955c334926e8641b4dc5)
bta/hf_client/bta_hf_client_sco.c