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

Commit ccd3f1f9 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

btm_acl_encrypt_change: Use handle directly

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7cc183ca8094315e00e3e924a77f0fec8d47c941
parent 25dbf04f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -677,7 +677,7 @@ void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
    if (p_dev_rec != NULL) {
      if (p_dev_rec->rs_disc_pending == BTM_SEC_DISC_PENDING) {
        LOG_WARN("Issuing delayed HCI_Disconnect!!!");
        btsnd_hcic_disconnect(p_dev_rec->hci_handle, HCI_ERR_PEER_USER);
        btsnd_hcic_disconnect(handle, HCI_ERR_PEER_USER);
      }
      LOG_WARN("tBTM_SEC_DEV:0x%x rs_disc_pending=%d", PTR_TO_UINT(p_dev_rec),
               p_dev_rec->rs_disc_pending);