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

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

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic60898e05cc1851c01c01d37ecd36a7b9857165c
parents e4c4a73b b875758e
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,