diff options
author | Myles Watson <mylesgw@google.com> | 2022-10-03 16:27:32 -0700 |
---|---|---|
committer | Myles Watson <mylesgw@google.com> | 2023-01-05 17:09:09 -0800 |
commit | efa25d72874c12e71b2ffcf057ebdb80cb41f55b (patch) | |
tree | 790d6be0e4a4f54bc2f8c7c0fdf07a0b228ed501 /bluetooth/aidl/default/BluetoothHci.h | |
parent | 044d5a801a5454d1012f3f8d0b5dedcdc1adc540 (diff) |
bluetooth: Add support for linux bluetooth raw hci sockets
The implementation is imported from
packages/modules/Bluetooth/system/vendor_libs/linux/interface
with modifications to modernize the code.
The default bluetooth HAL implementation now jointly uses
the serial implementation and the bluetooth socket
implementation.
Bug: 205758693
Test: VtsHalBluetoothTargetTest
Change-Id: I791fd406e56a0144e1117cb6f8e27ec71b48a192
Diffstat (limited to 'bluetooth/aidl/default/BluetoothHci.h')
-rw-r--r-- | bluetooth/aidl/default/BluetoothHci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bluetooth/aidl/default/BluetoothHci.h b/bluetooth/aidl/default/BluetoothHci.h index 0ed0623e47..a0908f840c 100644 --- a/bluetooth/aidl/default/BluetoothHci.h +++ b/bluetooth/aidl/default/BluetoothHci.h @@ -24,6 +24,7 @@ #include "async_fd_watcher.h" #include "h4_protocol.h" +#include "net_bluetooth_mgmt.h" namespace aidl::android::hardware::bluetooth::impl { @@ -64,8 +65,10 @@ class BluetoothHci : public BnBluetoothHci { ::android::hardware::bluetooth::async::AsyncFdWatcher mFdWatcher; + int getFdFromDevPath(); void send(::android::hardware::bluetooth::hci::PacketType type, const std::vector<uint8_t>& packet); + std::unique_ptr<NetBluetoothMgmt> management_{}; }; } // namespace aidl::android::hardware::bluetooth::impl |