diff --git a/system/stack/acl/btm_acl.cc b/system/stack/acl/btm_acl.cc index d772cc9d20e6ef4633f87034bae3dea408ddd0d6..43de3798f8aeedc4fb5efef4571b7c420d1a77c4 100644 --- a/system/stack/acl/btm_acl.cc +++ b/system/stack/acl/btm_acl.cc @@ -641,20 +641,6 @@ void btm_acl_encrypt_change(uint16_t handle, uint8_t status, return; } - /* if we are trying to drop encryption on an encrypted connection, drop the - * connection */ - if (p->is_encrypted && !encr_enable) { - LOG(ERROR) << __func__ - << " attempting to decrypt encrypted connection, disconnecting. " - "handle: " - << loghex(handle); - - acl_disconnect_from_handle(handle, HCI_ERR_HOST_REJECT_SECURITY, - "stack::btu::btu_hcif::read_drop_encryption " - "Connection Already Encrypted"); - return; - } - p->is_encrypted = encr_enable; /* Process Role Switch if active */