OSDN Git Service

ESR11-E7716: Disable scans while setting local RPA
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 7 Apr 2017 12:50:16 +0000 (05:50 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Sat, 8 Apr 2017 05:23:15 +0000 (05:23 +0000)
commit6bd467a004f4416aafc7fbd4da19b1e54578fd18
tree3acda1c98b228713d13caa0e8918dcb88957611f
parente7f14a682d57811d9df0d64372f222bcc143ec86
ESR11-E7716: Disable scans while setting local RPA

This change is required to disable any ongoing classic
advertisement or any scan before setting the RPA for the
DUT, and reenable them after the Set RPA command.
If a direct connection is ongoing, the RPA is not set.
A background connection is suspended and resumed for
sending the "Set RPA" HCI command.

This patch is based on CAF patch by niarora@codeaurora.org
690c2db21f650f74c202fd380cca4ca74cbdf83c

Test: manual
Bug: 35935853
Change-Id: Ifbc90d0c52c8f1fa627ac80c20a69149e89cb794
stack/btm/btm_ble.cc
stack/btm/btm_ble_addr.cc
stack/btm/btm_ble_int.h