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

Commit 5963f0f7 authored by Chris Manton's avatar Chris Manton
Browse files

Set gd_acl_enable as constant => true

Bug: 199414181
Tag: #refactor
Test: gd/cert/run

Change-Id: Iac436764587a0bd404a327385d1e06fde2582eb5
parent c933f347
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@ use paste::paste;
use std::sync::Mutex;

/// Deprecated immutable flag
pub fn gd_acl_is_enabled() -> bool {
    true
}

macro_rules! init_flags {
    (flags: { $($flag:ident),* }, dependencies: { $($parent:ident => $child:ident),* }) => {
@@ -52,7 +55,7 @@ macro_rules! init_flags {

                // TODO: acl should not be off if l2cap is on, but need to reconcile legacy code
                if self.gd_l2cap {
                    self.gd_acl = false;
                  // TODO This can never be turned off  self.gd_acl = false;
                }

                self
@@ -80,7 +83,6 @@ init_flags!(
        gd_advertising,
        gd_scanning,
        gd_security,
        gd_acl,
        gd_l2cap,
        gatt_robust_caching,
        btaa_hci,
@@ -89,11 +91,8 @@ init_flags!(
    },
    dependencies: {
        gd_core => gd_security,
        gd_security => gd_acl,
        gd_l2cap => gd_scanning,
        gd_scanning => gd_advertising,
        gd_advertising => gd_acl,
        gd_link_policy => gd_acl
        gd_scanning => gd_advertising
    }
);