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

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

Add stack/acl/btm_acl::IsEprAvailable am: 4c906d87

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2d358585efd3ccfd0739817b896b65da822795d0
parents 0216e8f8 4c906d87
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -106,6 +106,15 @@ typedef struct {
       ? true                                                       \
       : false)

inline bool IsEprAvailable(const tACL_CONN& p_acl) {
  if (!p_acl.peer_lmp_feature_valid[0]) {
    LOG_WARN("Checking incomplete feature page read");
    return false;
  }
  return HCI_ATOMIC_ENCRYPT_SUPPORTED(p_acl.peer_lmp_feature_pages[0]) &&
         controller_get_interface()->supports_encryption_pause();
}

extern tBTM_CB btm_cb;

static void btm_acl_chk_peer_pkt_type_support(tACL_CONN* p,