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

Commit b3849d0e authored by Chris Manton's avatar Chris Manton
Browse files

legacy: is_gd_enabled is always true

Bug: 199945370
Tag: #refactor
Test: gd/cert/run

Change-Id: Ife345bcf8e716ff0b925874c1ce78dcf36cc0350
parent f1605169
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
@@ -144,9 +144,7 @@ void Stack::StartEverything() {
  modules.add<hci::VendorSpecificEventManager>();

  modules.add<hci::Controller>();
  if (common::init_flags::gd_acl_is_enabled()) {
  modules.add<hci::AclManager>();
  }
  if (common::init_flags::gd_l2cap_is_enabled()) {
    modules.add<l2cap::classic::L2capClassicModule>();
    modules.add<l2cap::le::L2capLeModule>();
@@ -184,14 +182,12 @@ void Stack::StartEverything() {
    btm_ = new Btm(stack_handler_,
                   stack_manager_.GetInstance<neighbor::InquiryModule>());
  }
  if (common::init_flags::gd_acl_is_enabled()) {
  if (!common::init_flags::gd_core_is_enabled()) {
    acl_ = new legacy::Acl(
        stack_handler_, legacy::GetAclInterface(),
        controller_get_interface()->get_ble_acceptlist_size(),
        controller_get_interface()->get_ble_resolving_list_max_size());
  }
  }
  if (!common::init_flags::gd_core_is_enabled()) {
    bluetooth::shim::hci_on_reset_complete();
  }
@@ -244,7 +240,7 @@ void Stack::Stop() {
  }

  // Make sure gd acl flag is enabled and we started it up
  if (common::init_flags::gd_acl_is_enabled() && acl_ != nullptr) {
  if (acl_ != nullptr) {
    acl_->FinalShutdown();
    delete acl_;
    acl_ = nullptr;