From a58b79d44ed7c504aedff6435cd1ed4be4db5a82 Mon Sep 17 00:00:00 2001 From: David Duarte Date: Thu, 19 Jan 2023 18:14:32 +0000 Subject: [PATCH] Dispatch correct callbacks from AIDL HAL Test: pts-bot Bug: 266052984 Change-Id: I323f32ddbc9773df08f7cc466d37c395279e3dd9 --- bluetooth/aidl/default/BluetoothHci.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bluetooth/aidl/default/BluetoothHci.cpp b/bluetooth/aidl/default/BluetoothHci.cpp index 4d4896d162..a3ee439a0d 100644 --- a/bluetooth/aidl/default/BluetoothHci.cpp +++ b/bluetooth/aidl/default/BluetoothHci.cpp @@ -134,17 +134,17 @@ ndk::ScopedAStatus BluetoothHci::initialize( [](const std::vector& /* raw_command */) { LOG_ALWAYS_FATAL("Unexpected command!"); }, + [this](const std::vector& raw_acl) { + mCb->aclDataReceived(raw_acl); + }, + [this](const std::vector& raw_sco) { + mCb->scoDataReceived(raw_sco); + }, [this](const std::vector& raw_event) { mCb->hciEventReceived(raw_event); }, - [this](const std::vector& raw_acl) { - mCb->hciEventReceived(raw_acl); - }, - [this](const std::vector& raw_sco) { - mCb->hciEventReceived(raw_sco); - }, [this](const std::vector& raw_iso) { - mCb->hciEventReceived(raw_iso); + mCb->isoDataReceived(raw_iso); }, [this]() { ALOGI("HCI socket device disconnected");