OSDN Git Service

HFP: Only active BT device can hung up call
authorminle.zuo <minle.zuo@mediatek.com>
Wed, 25 Jul 2018 09:02:51 +0000 (17:02 +0800)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 14 Aug 2018 22:16:27 +0000 (22:16 +0000)
commit5057c3ce9ba31003628a6dd43ce9a5664ad6e266
tree47313713d1dd4a387dc08393bcecd7e402f61eb8
parentdedbd07ba8b906a01721ec6d772a952955c4e2b1
HFP: Only active BT device can hung up call

Some inactive devices can't send hung up key to host when
HFP connected and active call exist.
And other inactive devices can send hung up call by
sending hung up command.

Solution: To keep consistency of this behavior,
only allow active BT device to hung up call.

Test: Active device can hung up call and inactive can't hung up

Change-Id: Iec1ae689f1d40c15199707e9e925814f71ded619
bta/ag/bta_ag_cmd.cc