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

Commit 1fecd891 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Log the reason LE authentication failed

Bug: 260493132
Test: mma
Test: m com.android.btservices
Change-Id: I9b623b351d8e4274725171bb9fca0993d0510719
parent 1c57cd55
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3351,6 +3351,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: