OSDN Git Service

Reenable advertising instance after an LE advertising state change
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 14 Nov 2016 19:20:52 +0000 (11:20 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 14 Nov 2016 19:48:49 +0000 (19:48 +0000)
commit06325e3d5ddb863230f57e60bebac71ef7cb7ccc
tree176e03ff321b484aff4753a8be96dbaf4e60f25b
parent8c29b62b08e3a732d4bb15bba60778b95e69eed1
Reenable advertising instance after an LE advertising state change

Ensure BleAdvertisingManager::OnAdvertisingStateChanged() is called
after an advertising state change to re-enable advertising after
a connection.

This patch also fixes the registration test, which was broken since
one more advertising instance was freed for general usage.

Test: net_test_stack_multi_adv native test
Change-Id: I76887d98cb3ec386ebc0f7fad95170b8c18b9116
stack/btm/ble_advertiser_hci_interface.cc
stack/btm/ble_advertiser_hci_interface.h
stack/btm/btm_ble_multi_adv.cc
stack/include/ble_advertiser.h
stack/test/ble_advertiser_test.cc