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

Commit 132804e6 authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

ACL: Don't start l2cap security check on connection am: 86e89619 am: 4050619a

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

Change-Id: Ia24803d0d8f58211fbd6a0449c47b648c3d8e9cb
parents fc1778ca 4050619a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -415,8 +415,6 @@ void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
      memcpy(p_acl->peer_lmp_feature_pages, p_dev_rec->feature_pages,
             (HCI_FEATURE_BYTES_PER_PAGE * p_dev_rec->num_read_pages));

      const uint8_t req_pend = (p_dev_rec->sm4 & BTM_SM4_REQ_PEND);

      /* Store the Peer Security Capabilites (in SM4 and rmt_sec_caps) */
      bool ssp_supported =
          HCI_SSP_HOST_SUPPORTED(p_acl->peer_lmp_feature_pages[1]);
@@ -425,10 +423,6 @@ void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
      btm_sec_set_peer_sec_caps(ssp_supported, secure_connections_supported,
                                p_dev_rec);

      if (req_pend) {
        /* Request for remaining Security Features (if any) */
        l2cu_resubmit_pending_sec_req(&p_dev_rec->bd_addr);
      }
      internal_.btm_establish_continue(p_acl);
      return;
    }