summaryrefslogtreecommitdiffstats
path: root/stack/mcap/mca_api.c
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2015-03-12 10:09:14 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-03-19 15:20:02 -0700
commit02c530503feb46150d013bf87b0570a781fb10ec (patch)
tree4cfac9527ba53c873e62845e0d017a8a67af011a /stack/mcap/mca_api.c
parenta40848a8810b95ad279d4294c8e6cbba2b09347a (diff)
downloadandroid_system_bt-02c530503feb46150d013bf87b0570a781fb10ec.tar.gz
android_system_bt-02c530503feb46150d013bf87b0570a781fb10ec.tar.bz2
android_system_bt-02c530503feb46150d013bf87b0570a781fb10ec.zip
DO NOT MERGE - Remove ACL connection reference counting
In addition to maintaining ACL link control blocks, which carry a "in_use" flag, ACL links are reference counted in the num_acl links variable. The reference counting is thrown off when a SM connection initiated for pairing is followed up by a GATT connection after pairing completes. The 2nd connection is counted against num_acl, even so other parts of the code recognize the connection as a duplicate ACL connection to the same BDA. This patch removes the unecessary reference counting and relies on the control block status instead, which is correctly maintained. The BTM_BUSY_LEVEL_CHANGE_INCLUDED flag encapsulating the num_acl tracking should be removed in the future. Bug: 19019189 Change-Id: I4cc88c24f1c4d1273361d879bc62e9fade3f3ee9
Diffstat (limited to 'stack/mcap/mca_api.c')
0 files changed, 0 insertions, 0 deletions