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>
Mon, 10 Apr 2017 16:54:55 +0000 (09:54 -0700)
commit1f62c122e908573497a8c69ccd7bd829ce02a0b9
tree0558e04dcb4de29a983eef6e66ada57f2d4e134f
parent17f449dab52a6092422a0405e6fe589488661594
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
stack/btm/ble_advertiser_hci_interface.cc
stack/btm/btm_ble_multi_adv.cc
stack/test/ble_advertiser_test.cc