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

Commit 36133bc9 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

btm_loghistory: btm_sec_auth_complete::Bonding am: f5aa1ffe am: 2bc6186e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1539051

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc0f1a64e1a652625fd4ade85bb9522bc94c3881
parents 1fe18664 2bc6186e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include "hcimsgs.h"
#include "l2c_api.h"
#include "main/shim/btm_api.h"
#include "main/shim/dumpsys.h"
#include "main/shim/shim.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
@@ -759,6 +760,9 @@ tBTM_STATUS btm_sec_bond_by_transport(const RawAddress& bd_addr,
  p_dev_rec->security_required = BTM_SEC_OUT_AUTHENTICATE;
  p_dev_rec->is_originator = true;

  BTM_LogHistory("Sec", bd_addr, "Bonding initiated",
                 BtTransportText(transport));

  if (transport == BT_TRANSPORT_LE) {
    btm_ble_init_pseudo_addr(p_dev_rec, bd_addr);
    p_dev_rec->sec_flags &= ~BTM_SEC_LE_MASK;
@@ -3077,6 +3081,8 @@ void btm_sec_auth_complete(uint16_t handle, tHCI_STATUS status) {
        btm_sec_send_hci_disconnect(p_dev_rec, HCI_ERR_PEER_USER,
                                    p_dev_rec->hci_handle);
    } else {
      BTM_LogHistory("Sec", p_dev_rec->bd_addr, "Bonding completed",
                     hci_error_code_text(status));
      BTM_TRACE_DEBUG("TRYING TO DECIDE IF CAN USE SMP_BR_CHNL");
      if (p_dev_rec->new_encryption_key_is_p256 &&
          (btm_sec_use_smp_br_chnl(p_dev_rec))