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

Commit c7314094 authored by Zach Johnson's avatar Zach Johnson
Browse files

Replace BTA_SYS_API_DISABLE_EVT with direct call

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id9ff511318dbe1bea853985274bd202872391a07
parent df8e5101
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -87,18 +87,12 @@ static void bta_sys_sm_execute(tBTA_SYS_HW_EVT event) {
  switch (bta_sys_cb.state) {
    case BTA_SYS_HW_OFF:
      switch (event) {
        case BTA_SYS_API_DISABLE_EVT:
          BTA_dm_on_hw_off();
          break;
        default:
          break;
      }
      break;
    case BTA_SYS_HW_STARTING:
      switch (event) {
        case BTA_SYS_API_DISABLE_EVT:
          bta_sys_set_state(BTA_SYS_HW_STOPPING);
          break;
        case BTA_SYS_ERROR_EVT:
          bta_sys_set_state(BTA_SYS_HW_ON);
          bta_sys_hw_error();
@@ -109,9 +103,6 @@ static void bta_sys_sm_execute(tBTA_SYS_HW_EVT event) {
      break;
    case BTA_SYS_HW_ON:
      switch (event) {
        case BTA_SYS_API_DISABLE_EVT:
          bta_sys_hw_api_disable();
          break;
        case BTA_SYS_ERROR_EVT:
          bta_sys_hw_error();
          break;
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ static void event_shut_down_stack(UNUSED_ATTR void* context) {
  local_hack_future = future_new();
  hack_future = local_hack_future;

  send_bta_sys_hw_event(BTA_SYS_API_DISABLE_EVT);
  bta_sys_hw_api_disable();

  module_shut_down(get_module(BTIF_CONFIG_MODULE));