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

Commit 138e835f authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Automerger Merge Worker
Browse files

Merge "Log the reason LE authentication failed" into main am: 7960b7fe

parents 52519f88 7960b7fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3501,6 +3501,8 @@ static void btif_dm_ble_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
    /* Map the HCI fail reason  to  bt status  */
    // TODO This is not a proper use of the type
    uint8_t fail_reason = static_cast<uint8_t>(p_auth_cmpl->fail_reason);
    LOG_ERROR("LE authentication for %s failed with reason %d",
              ADDRESS_TO_LOGGABLE_CSTR(bd_addr), p_auth_cmpl->fail_reason);
    switch (fail_reason) {
      case BTA_DM_AUTH_SMP_PAIR_AUTH_FAIL:
      case BTA_DM_AUTH_SMP_CONFIRM_VALUE_FAIL: