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

Commit 83cd357b authored by Hansong Zhang's avatar Hansong Zhang
Browse files

ACL: No need to clear these flags

It's done in btm_sec.cc btm_sec_disconnected:

p_dev_rec->sec_flags &=
        ~(BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED | BTM_SEC_ROLE_SWITCHED |
          BTM_SEC_16_DIGIT_PIN_AUTHED);

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Iea4cac99b6691b0cfe765ee5eb109f25339ebd5a
parent 518ff48f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -497,9 +497,6 @@ void btm_acl_removed(uint16_t handle) {
        p_dev_rec->sec_flags &=
            ~(BTM_SEC_LE_LINK_KEY_AUTHED | BTM_SEC_LE_AUTHENTICATED);
      }
    } else {
      p_dev_rec->sec_flags &=
          ~(BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED | BTM_SEC_ROLE_SWITCHED);
    }
  }
  memset(p_acl, 0, sizeof(tACL_CONN));