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

Commit eaefd432 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Introduce GD L2cap init flag

Bug: 141555841
Test: cert/run --host
Tag: #gd-refactor
Change-Id: Ida422ee0738e206f45004f76e60e7f8c6b7d5acc
parent 5bacd850
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ bool InitFlags::gd_core_enabled = false;
bool InitFlags::gd_advertising_enabled = false;
bool InitFlags::gd_security_enabled = false;
bool InitFlags::gd_acl_enabled = false;
bool InitFlags::gd_l2cap_enabled = false;
bool InitFlags::gd_hci_enabled = false;
bool InitFlags::gd_controller_enabled = false;
bool InitFlags::gatt_robust_caching_enabled = false;
@@ -64,6 +65,7 @@ void InitFlags::Load(const char** flags) {
    ParseBoolFlag(flag_pair, "INIT_gd_advertising", &gd_advertising_enabled);
    ParseBoolFlag(flag_pair, "INIT_gd_security", &gd_security_enabled);
    ParseBoolFlag(flag_pair, "INIT_gd_acl", &gd_acl_enabled);
    ParseBoolFlag(flag_pair, "INIT_gd_l2cap", &gd_l2cap_enabled);
    ParseBoolFlag(flag_pair, "INIT_gd_hci", &gd_hci_enabled);
    ParseBoolFlag(flag_pair, "INIT_gd_controller", &gd_controller_enabled);
    ParseBoolFlag(flag_pair, "INIT_gatt_robust_caching", &gatt_robust_caching_enabled);
+5 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ class InitFlags final {
    return gd_controller_enabled;
  }

  static bool GdL2capEnabled() {
    return gd_l2cap_enabled;
  }

  static bool GdCoreEnabled() {
    return gd_core_enabled;
  }
@@ -79,6 +83,7 @@ class InitFlags final {
  static bool gd_acl_enabled;
  static bool gd_hci_enabled;
  static bool gd_controller_enabled;
  static bool gd_l2cap_enabled;
  static bool gd_core_enabled;
  static bool gatt_robust_caching_enabled;
  static bool logging_debug_enabled_for_all;