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

Commit 25cf0788 authored by Zach Johnson's avatar Zach Johnson
Browse files

No need to bounce BTA_sys_signal_hw_error through main thread

it posts immediately to btif

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I3c65d97ceb305abcda6843b60b8bcba16ce07cb0
parent 6ab30e50
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -72,8 +72,4 @@ typedef struct {
/* system manager control block */
extern tBTA_SYS_CB bta_sys_cb;

/* functions used for BTA SYS HW state machine */
void bta_sys_hw_error();
void bta_sys_hw_evt_enabled();

#endif /* BTA_SYS_INT_H */
+0 −16
Original line number Diff line number Diff line
@@ -72,22 +72,6 @@ void bta_set_forward_hw_failures(bool value) {
}

void BTA_sys_signal_hw_error() {
  do_in_main_thread(FROM_HERE, base::Bind(bta_sys_hw_error));
}

/*******************************************************************************
 *
 * Function         bta_sys_hw_error
 *
 * Description     In case the HW device stops answering... Try to turn it off,
 *                 then re-enable all
 *                      previously active SW modules.
 *
 * Returns          success or failure
 *
 ******************************************************************************/
void bta_sys_hw_error() {
  APPL_TRACE_DEBUG("%s", __func__);
  if (bta_sys_cb.forward_hw_failures) {
    BTIF_dm_on_hw_error();
  }