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

Commit 0991c226 authored by Myles Watson's avatar Myles Watson
Browse files

InitFlags: Remove att_mtu_default

Bug: 289153281
Test: mma -j32
Flag: EXEMPT, no logical change
Change-Id: I60d7d279c21887cc7d7a61563fd5f564fbcea43f
parent 5d357b18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ init_flags!(
        dynamic_avrcp_version_enhancement = true,
        hci_adapter: i32,
        use_unified_connection_manager,
        att_mtu_default: i32 = 517,
        encryption_in_busy_state = true,
    }
    extra_parsed_flags: {
        "--hci" => parse_hci_adapter(_, _),
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ mod ffi {
        fn dynamic_avrcp_version_enhancement_is_enabled() -> bool;
        fn get_hci_adapter() -> i32;
        fn use_unified_connection_manager_is_enabled() -> bool;
        fn get_att_mtu_default() -> i32;
        fn encryption_in_busy_state_is_enabled() -> bool;
    }
}

+2 −3
Original line number Diff line number Diff line
@@ -99,9 +99,8 @@ const char* const op_code_name[] = {"UNKNOWN",
uint16_t gatt_get_local_mtu(void) {
  /* Default ATT MTU must not be greater than GATT_MAX_MTU_SIZE, nor smaller
   * than GATT_DEF_BLE_MTU_SIZE */
  static const uint16_t ATT_MTU_DEFAULT = std::max(
          std::min(bluetooth::common::init_flags::get_att_mtu_default(), GATT_MAX_MTU_SIZE),
          GATT_DEF_BLE_MTU_SIZE);
  static const uint16_t ATT_MTU_DEFAULT =
          std::max(std::min(517, GATT_MAX_MTU_SIZE), GATT_DEF_BLE_MTU_SIZE);
  return ATT_MTU_DEFAULT;
}