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

Commit 7960b7fe authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Log the reason LE authentication failed" into main

parents bde5aaf2 1fecd891
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: