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

Commit 169767bb authored by Hansong Zhang's avatar Hansong Zhang
Browse files

ACL: Remove unused field

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ied053d1ee5d0a1c485a79be068bedc366d05c43a
parent c5c5ed3d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -102,7 +102,6 @@ typedef struct {
 public:
  uint8_t link_role;
  uint8_t lmp_version;
  uint8_t num_read_pages;
  uint8_t switch_role_failed_attempts;

 private:
+0 −4
Original line number Diff line number Diff line
@@ -414,8 +414,6 @@ void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
        (p_dev_rec->num_read_pages <= (HCI_EXT_FEATURES_PAGE_MAX + 1))) {
      memcpy(p_acl->peer_lmp_feature_pages, p_dev_rec->feature_pages,
             (HCI_FEATURE_BYTES_PER_PAGE * p_dev_rec->num_read_pages));
      // TODO We do not need to store the pages read here
      p_acl->num_read_pages = p_dev_rec->num_read_pages;

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

@@ -878,7 +876,6 @@ void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
    return;
  }

  p_acl_cb->num_read_pages = num_read_pages;
  p_dev_rec->num_read_pages = num_read_pages;

  /* Move the pages to placeholder */
@@ -939,7 +936,6 @@ void StackAclBtmAcl::btm_read_remote_features(uint16_t handle) {
  }

  p_acl_cb = &btm_cb.acl_cb_.acl_db[acl_idx];
  p_acl_cb->num_read_pages = 0;
  memset(p_acl_cb->peer_lmp_feature_pages, 0,
         sizeof(p_acl_cb->peer_lmp_feature_pages));