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

Commit cf05ecb2 authored by Myles Watson's avatar Myles Watson
Browse files

InitFlags: Remove irk_rotation

Bug: 195410559
Fixes: 290845202
Test: mma -j32
Flag: EXEMPT, no logical change
Change-Id: I6d62c29aca166a96a51b0a56d1a15a71aa2f836e
parent 27749c4f
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@
#include "btif/include/btif_util.h"
#include "btif/include/core_callbacks.h"
#include "btif/include/stack_manager_t.h"
#include "common/init_flags.h"
#include "hci/controller_interface.h"
#include "internal_include/bt_target.h"
#include "main/shim/entry.h"
@@ -797,12 +796,6 @@ bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr)

  btif_config_remove_device(bdstr);

  /* Check the length of the paired devices, and if 0 then reset IRK */
  auto paired_devices = btif_config_get_paired_devices();
  if (paired_devices.empty() && bluetooth::common::init_flags::irk_rotation_is_enabled()) {
    log::info("Last paired device removed, resetting IRK");
    BTA_DmBleResetId();
  }
  return BT_STATUS_SUCCESS;
}

+0 −1
Original line number Diff line number Diff line
@@ -210,7 +210,6 @@ init_flags!(
        classic_discovery_only,
        dynamic_avrcp_version_enhancement = true,
        hci_adapter: i32,
        irk_rotation,
        leaudio_targeted_announcement_reconnection_mode = true,
        pbap_pse_dynamic_version_upgrade = false,
        redact_log = true,
+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ mod ffi {
        fn classic_discovery_only_is_enabled() -> bool;
        fn dynamic_avrcp_version_enhancement_is_enabled() -> bool;
        fn get_hci_adapter() -> i32;
        fn irk_rotation_is_enabled() -> bool;
        fn leaudio_targeted_announcement_reconnection_mode_is_enabled() -> bool;
        fn pbap_pse_dynamic_version_upgrade_is_enabled() -> bool;
        fn redact_log_is_enabled() -> bool;