OSDN Git Service

Advertising manager improvements
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 4 Apr 2017 11:08:19 +0000 (04:08 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 11 Apr 2017 16:32:57 +0000 (09:32 -0700)
commit777ccd11450d53bfc25dc9bdc58408d1d8cc9887
tree7474fe3ee30720b10d888cff0caad561b43485e9
parent7e478a0db601fe28d40faf9b51671c173a7336ff
Advertising manager improvements

* Keep track wether advertiser is enabled.
* Make sure that random address for connectable advertisers is updated
  when advertising is disabled, as per ESR11-E7716.
* Make sure that the local variable holding the address is properly
  updated after the address is pushed to the controller.
* Use "LE Remove Advertising Set" command to free advertiser after use.

Bug: 35935853
Bug: 30622771
Test: manual
Change-Id: I1415f7272dd99e5e81ce1e2b7ef2bf98f7229cf9
(cherry picked from commit 1f62c122e908573497a8c69ccd7bd829ce02a0b9)
stack/btm/ble_advertiser_hci_interface.cc
stack/btm/btm_ble_multi_adv.cc
stack/test/ble_advertiser_test.cc