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

Commit b04525c0 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6799200 from e6c7a076 to rvc-qpr1-release

Change-Id: I21c0dfd0688437ae2030c23f2caebb983360e250
parents d98810c3 e6c7a076
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4358,6 +4358,7 @@ void btm_sec_disconnected(uint16_t handle, uint8_t reason) {
              << p_dev_rec->bd_addr;

    bta_dm_remove_device(p_dev_rec->bd_addr);
    return;
  }

  BTM_TRACE_EVENT("%s after update sec_flags=0x%x", __func__,
+35 −30
Original line number Diff line number Diff line
@@ -249,12 +249,15 @@ bool SMP_PairCancel(const RawAddress& bd_addr) {
void SMP_SecurityGrant(const RawAddress& bd_addr, uint8_t res) {
  SMP_TRACE_EVENT("SMP_SecurityGrant ");

  // If just showing consent dialog, send response
  if (smp_cb.cb_evt == SMP_CONSENT_REQ_EVT) {
    // If JUSTWORKS, this is used to display the consent dialog
    if (smp_cb.selected_association_model == SMP_MODEL_SEC_CONN_JUSTWORKS) {
      if (res == SMP_SUCCESS) {
        smp_sm_event(&smp_cb, SMP_SC_NC_OK_EVT, NULL);
      } else {
      SMP_TRACE_WARNING("%s() - Consent dialog fails for JUSTWORKS", __func__);
        SMP_TRACE_WARNING("%s() - Consent dialog fails for JUSTWORKS",
                          __func__);
        /* send pairing failure */
        tSMP_INT_DATA smp_int_data;
        smp_int_data.status = SMP_NUMERIC_COMPAR_FAIL;
@@ -281,6 +284,8 @@ void SMP_SecurityGrant(const RawAddress& bd_addr, uint8_t res) {
        smp_sm_event(&smp_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
      }
    }
    return;
  }

  if (smp_cb.smp_over_br) {
    if (smp_cb.br_state != SMP_BR_STATE_WAIT_APP_RSP ||