summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flags/security.aconfig10
-rw-r--r--system/stack/btm/btm_sec.cc6
2 files changed, 2 insertions, 14 deletions
diff --git a/flags/security.aconfig b/flags/security.aconfig
index c83dc02b24..e3abc55fb3 100644
--- a/flags/security.aconfig
+++ b/flags/security.aconfig
@@ -66,16 +66,6 @@ flag {
}
flag {
- name: "sec_disconnect_on_le_key_missing"
- namespace: "bluetooth"
- description: "Disconnect LE link when keys are missing during encryption"
- bug: "376680866"
- metadata {
- purpose: PURPOSE_BUGFIX
- }
-}
-
-flag {
name: "guard_bonded_device_properties"
namespace: "bluetooth"
description: "Don't update device properties for bonded devices from the device discovery results"
diff --git a/system/stack/btm/btm_sec.cc b/system/stack/btm/btm_sec.cc
index b00b779eee..deab5524c4 100644
--- a/system/stack/btm/btm_sec.cc
+++ b/system/stack/btm/btm_sec.cc
@@ -3321,10 +3321,8 @@ void btm_sec_encrypt_change(uint16_t handle, tHCI_STATUS status, uint8_t encr_en
if (status == HCI_ERR_KEY_MISSING) {
log::info("Remote key missing - will report");
bta_dm_remote_key_missing(p_dev_rec->ble.pseudo_addr);
- if (com::android::bluetooth::flags::sec_disconnect_on_le_key_missing()) {
- btm_sec_send_hci_disconnect(p_dev_rec, HCI_ERR_HOST_REJECT_SECURITY,
- p_dev_rec->ble_hci_handle, "encryption_change:key_missing");
- }
+ btm_sec_send_hci_disconnect(p_dev_rec, HCI_ERR_HOST_REJECT_SECURITY,
+ p_dev_rec->ble_hci_handle, "encryption_change:key_missing");
return;
}