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

Commit c930c531 authored by Chris Manton's avatar Chris Manton Committed by Android (Google) Code Review
Browse files

Merge "Re-order stack startup/shutdown with btm" into tm-dev

parents 7c17aebb 017a49c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -286,10 +286,10 @@ static void event_start_up_stack(UNUSED_ATTR void* context) {


  LOG_INFO("%s Gd shim module enabled", __func__);
  LOG_INFO("%s Gd shim module enabled", __func__);
  module_shut_down(get_local_module(GD_IDLE_MODULE));
  module_shut_down(get_local_module(GD_IDLE_MODULE));
  get_btm_client_interface().lifecycle.btm_init();
  module_start_up(get_local_module(GD_SHIM_MODULE));
  module_start_up(get_local_module(GD_SHIM_MODULE));
  module_start_up(get_local_module(BTIF_CONFIG_MODULE));
  module_start_up(get_local_module(BTIF_CONFIG_MODULE));


  get_btm_client_interface().lifecycle.btm_init();
  l2c_init();
  l2c_init();
  sdp_init();
  sdp_init();
  gatt_init();
  gatt_init();
@@ -381,10 +381,10 @@ static void event_shut_down_stack(UNUSED_ATTR void* context) {
  l2c_free();
  l2c_free();
  sdp_free();
  sdp_free();
  get_btm_client_interface().lifecycle.btm_ble_free();
  get_btm_client_interface().lifecycle.btm_ble_free();
  get_btm_client_interface().lifecycle.btm_free();


  LOG_INFO("%s Gd shim module disabled", __func__);
  LOG_INFO("%s Gd shim module disabled", __func__);
  module_shut_down(get_local_module(GD_SHIM_MODULE));
  module_shut_down(get_local_module(GD_SHIM_MODULE));
  get_btm_client_interface().lifecycle.btm_free();
  module_start_up(get_local_module(GD_IDLE_MODULE));
  module_start_up(get_local_module(GD_IDLE_MODULE));


  hack_future = future_new();
  hack_future = future_new();