OSDN Git Service

Dynamic blacklist device for role switch
authorSrinu Jella <sjella@codeaurora.org>
Thu, 8 Dec 2016 13:33:20 +0000 (19:03 +0530)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 5 Jul 2017 19:40:37 +0000 (12:40 -0700)
commit942648ef5a4b25508cc9ffe7073ddab5e04a9ab4
tree879c77ee7735e0d58ff242033f2d4e77ed342a84
parentca6aea976d5e38e6cc9c22247812ac7deb58ea57
Dynamic blacklist device for role switch

- Blacklist the device if it's rejected the role switch for
   max number of times. Same is added to the interop_database.

- Maximum number of failed (BTM_MAX_SW_ROLE_FAILED_ATTEMPTS)
  attempts set to 3 and it is configurable.

- Same blacklisted device is referred by the BTM module when
  any other module like profile is requesting for role switch
  and BTM module returns BTM_REPEATED_ATTEMPTS as the switch
  role status.

Test: Code compilation
Bug: 32999957
Change-Id: Ie999104a2c8ca507605ef3e1d454865cee98dcd2
device/include/interop.h
device/src/interop.cc
stack/btm/btm_acl.cc
stack/btm/btm_int.h
stack/btm/btm_int_types.h
stack/btu/btu_hcif.cc
stack/include/bt_types.h
stack/include/btm_api_types.h