OSDN Git Service

OOB: Start advertising when OOB data is generated.
authorMartin Brabham <optedoblivion@google.com>
Thu, 20 May 2021 21:30:09 +0000 (14:30 -0700)
committerMartin Brabham <optedoblivion@google.com>
Tue, 29 Jun 2021 19:33:26 +0000 (12:33 -0700)
commit83aa2811dfed8e935c51279ad60981a03b6bb5e9
tree3a61ce35b7c68080b667adb43c3ec5bb4108fad5
parentaaf65a2e3a63d384e5e09d5ecb2431b60f237e35
OOB: Start advertising when OOB data is generated.

This affords the stack the capability to provide the proper
random address and address type to the user via the OobDataCallback.

Previous to this commit, the data defaults to the public address.

This advertisement will time out, and will clear OOB data upon timeout.

Bug: 192084169
Test: Manual, test app.
Test: m bt_host_test_bta
Test: m net_test_btif_stack
Tag: #feature
Change-Id: Ia24c10e7209027b8b070b9196caba7e394ee6dcb
Merged-In: Ia24c10e7209027b8b070b9196caba7e394ee6dcb
btif/include/btif_common.h
btif/include/btif_gatt.h
btif/src/bluetooth.cc
btif/src/btif_dm.cc
stack/include/smp_api.h
stack/smp/smp_api.cc
stack/smp/smp_int.h
stack/smp/smp_keys.cc
test/mock/mock_stack_smp_api.cc