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

Commit 81a602ec authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Return correct status for HID host disable request"

parents f76c38bd 1cfde230
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -159,14 +159,13 @@ void bta_hh_api_disable(void) {
 ******************************************************************************/
void bta_hh_disc_cmpl(void) {
  LOG_DEBUG("Disconnect complete");

  HID_HostDeregister();
  bta_hh_le_deregister();
  tBTA_HH_STATUS status = BTA_HH_OK;

  /* Deregister with lower layer */
  if (HID_HostDeregister() != HID_SUCCESS) status = BTA_HH_ERR;

  bta_hh_le_deregister();

  bta_hh_cleanup_disable(status);
}