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

Commit 4c906d87 authored by Chris Manton's avatar Chris Manton
Browse files

Add stack/acl/btm_acl::IsEprAvailable

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I96ca5c527a46e4e862668aa981822961c4de5b29
parent c953766a
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,