OSDN Git Service

Simplify btm_remove_acl
authorHansong Zhang <hsz@google.com>
Fri, 30 Oct 2020 04:16:20 +0000 (21:16 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 5 Nov 2020 02:03:01 +0000 (18:03 -0800)
commitf49b6f50c69d51dfbef4fc7029f35b6886f1c15f
treefd94a6e3270f370feb74da8481be558115f36a7c
parent6a068a9674bdf4782fd02e7bdc9e03850ec1073a
Simplify btm_remove_acl

If btm_sec already sent HCI disconnect, and we send it again, we get bad
handle error, but it's ok.  Other users are sending disconnect without
checking btm_sec.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ib232ff07b2080d574e2516fcdac3b3d6b980bd72
stack/acl/btm_acl.cc