OSDN Git Service

HCI interface improvements
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 28 Dec 2016 12:47:37 +0000 (04:47 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 29 Dec 2016 05:08:13 +0000 (05:08 +0000)
commitdabf8d36c6a6896953fff4a12365716d438f173a
treee6efef851c6b56eafa3dbf382f8712e034e83f33
parent2255250d9bb5c8c1354fc2b4685523d028dcf6f9
HCI interface improvements

This patch improves btu_hcif_send_cmd_with_cb, which will accept
base::Callback instead of function pointer as argument. It will also
carry information about where was packet send from, which can be
displayed when command status is received, greatly improving logs.

The improved method is also used for handling VSC advertising.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertiserTest
Change-Id: I55c3e32f9231c00bfa85f971265809d6f1fecdfb
stack/btm/ble_advertiser_hci_interface.cc
stack/btu/btu_hcif.cc
stack/include/btu.h