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

Commit 4695c722 authored by Zach Johnson's avatar Zach Johnson
Browse files

Pull BTA_SYS_API_ENABLE_EVT out of bta_dm_enable

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I5c1a648cceb8b32816797786606785933140e0e4
parent f2d3afc7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -266,8 +266,6 @@ void bta_dm_enable(tBTA_DM_SEC_CBACK* p_sec_cback) {
  /* notify BTA DM is now active */
  bta_dm_cb.is_bta_dm_active = true;

  send_bta_sys_hw_event(BTA_SYS_API_ENABLE_EVT);

  btm_local_io_caps = btif_storage_get_local_io_caps();
}

+2 −0
Original line number Diff line number Diff line
@@ -225,6 +225,8 @@ static void event_start_up_stack(UNUSED_ATTR void* context) {
  BTA_dm_init();
  bta_dm_enable(bte_dm_evt);

  send_bta_sys_hw_event(BTA_SYS_API_ENABLE_EVT);

  if (future_await(local_hack_future) != FUTURE_SUCCESS) {
    LOG_ERROR("%s failed to start up the stack", __func__);
    stack_is_running = true;  // So stack shutdown actually happens