Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51877453 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Take EventCode::DISCONNECTION_COMPLETE if acl shim is enabled am: ab4ee994

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1460805

Change-Id: Ic1dc1372d9e381258f3e02505b3973f7109ec054
parents 46a12579 ab4ee994
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -396,7 +396,7 @@ void HciLayer::Start() {
  RegisterEventHandler(EventCode::COMMAND_COMPLETE, handler->BindOn(impl_, &impl::on_command_complete));
  RegisterEventHandler(EventCode::COMMAND_COMPLETE, handler->BindOn(impl_, &impl::on_command_complete));
  RegisterEventHandler(EventCode::COMMAND_STATUS, handler->BindOn(impl_, &impl::on_command_status));
  RegisterEventHandler(EventCode::COMMAND_STATUS, handler->BindOn(impl_, &impl::on_command_status));
  RegisterLeMetaEventHandler(handler->BindOn(impl_, &impl::on_le_meta_event));
  RegisterLeMetaEventHandler(handler->BindOn(impl_, &impl::on_le_meta_event));
  if (bluetooth::common::InitFlags::GdCoreEnabled()) {
  if (bluetooth::common::InitFlags::GdAclEnabled()) {
    RegisterEventHandler(
    RegisterEventHandler(
        EventCode::DISCONNECTION_COMPLETE, handler->BindOn(this, &HciLayer::on_disconnection_complete));
        EventCode::DISCONNECTION_COMPLETE, handler->BindOn(this, &HciLayer::on_disconnection_complete));
  }
  }