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

Commit ecdf7973 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Do not delete pairing on HCI connection timeout

Change-Id: I67121f3f6d34cd82e243af11ecd735684c4ca67d
Fixes: 63796670
Test: manual
parent 5f41ce69
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2589,9 +2589,11 @@ static uint8_t bta_dm_authentication_complete_cback(
      bta_dm_cb.p_sec_cback(BTA_DM_AUTH_CMPL_EVT, &sec_event);

    if (result != HCI_ERR_LMP_RESPONSE_TIMEOUT &&
        result != HCI_ERR_PAGE_TIMEOUT &&
        result != HCI_ERR_PAGE_TIMEOUT && result != HCI_ERR_CONNECTION_TOUT &&
        result != HCI_ERR_CONN_FAILED_ESTABLISHMENT &&
        result != HCI_ERR_KEY_MISSING) {
      APPL_TRACE_WARNING("%s deleting %s - result: 0x%02x", __func__,
                         bd_addr.ToString().c_str(), result);
      bta_dm_remove_sec_dev_entry(bd_addr);
    }
  }