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>
Tue, 11 Apr 2017 16:32:34 +0000 (09:32 -0700)
commit917db0236bd881a4229d30f4097804bea842e7ef
tree18c2f818268ebcf61f983d05b73857279cd34380
parentc84faa65fb9e6f58ae05b409127774332399d6ec
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
(cherry picked from commit 6bd467a004f4416aafc7fbd4da19b1e54578fd18)
stack/btm/btm_ble.cc
stack/btm/btm_ble_addr.cc
stack/btm/btm_ble_int.h