hikey: Make the Hikey Bluetooth HAL independent
Test: Bluetooth starts/stops
Change-Id: I8a8b113f3edcdb092c36fd7822aeabf900c0f0b3
diff --git a/bluetooth/bluetooth_hci.h b/bluetooth/bluetooth_hci.h
index 91fad27..484a6ab 100644
--- a/bluetooth/bluetooth_hci.h
+++ b/bluetooth/bluetooth_hci.h
@@ -21,7 +21,7 @@
#include <hidl/MQDescriptor.h>
#include "async_fd_watcher.h"
-#include "hci_packetizer_hikey.h"
+#include "h4_protocol.h"
namespace android {
namespace hardware {
@@ -43,17 +43,13 @@
static void OnPacketReady();
- static BluetoothHci* get();
-
private:
::android::sp<IBluetoothHciCallbacks> event_cb_;
int hci_tty_fd_;
- void HandleIncomingPacket();
-
async::AsyncFdWatcher fd_watcher_;
- HciPacketizerHikey hci_packetizer_{BluetoothHci::OnPacketReady};
+ hci::H4Protocol* hci_;
};
} // namespace hikey