OSDN Git Service

BTA HF_CLIENT: Always reply to +BCS
authorSanket Agarwal <sanketa@google.com>
Wed, 22 Feb 2017 19:55:34 +0000 (11:55 -0800)
committerMyles Watson <mylesgw@google.com>
Mon, 17 Apr 2017 22:52:44 +0000 (22:52 +0000)
commitc8f807502482e76a6052b74d01405e72a40ab9df
treef5180ecfa26b2978e138ad1bc89b65dcbc44a8d8
parent51b86e9fa59ab53d39bc8cd1dcf9ce898372650f
BTA HF_CLIENT: Always reply to +BCS

Phones don't like when we don't reply to +BCS codec-negotiation. We were
having this behavior because not always do we want to accept a
connection request over SCO. Instead of not replying to +BCS (which is
essentially a codec negotiation) we rather refuse the SCO request when
it comes in. This creates other issues such as some phones trying to
connect SCO in an infinite loop but it still keeps interoperability with
other devices such as iPhones and Microsoft phones intact

Bug: b/35469963
Bug: b/35431871
Bug: b/35419773

Test: SCO (Phone Audio) test with iPhone, Microsoft and Nexus phones

Change-Id: I5319edcb4da9d66c6d6b3a49742248c90dee98e6
(cherry picked from commit ad372cfa3376f882046284a5655ed9c6fdf24daf)
bta/hf_client/bta_hf_client_at.cc
bta/hf_client/bta_hf_client_sco.cc