summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flags/security.aconfig4
-rw-r--r--system/stack/btm/btm_ble_sec.cc2
-rw-r--r--system/stack/btm/btm_sec.cc4
3 files changed, 5 insertions, 5 deletions
diff --git a/flags/security.aconfig b/flags/security.aconfig
index 809689c2d4..dc6fea1ac5 100644
--- a/flags/security.aconfig
+++ b/flags/security.aconfig
@@ -36,10 +36,10 @@ flag {
}
flag {
- name: "le_enc_on_reconnection"
+ name: "le_enc_on_reconnect"
namespace: "bluetooth"
description: "Encrypt LE link on reconnection with bonded devices"
- bug: "356201480"
+ bug: "388864535"
metadata {
purpose: PURPOSE_BUGFIX
}
diff --git a/system/stack/btm/btm_ble_sec.cc b/system/stack/btm/btm_ble_sec.cc
index 2ab87a0573..e05091f656 100644
--- a/system/stack/btm/btm_ble_sec.cc
+++ b/system/stack/btm/btm_ble_sec.cc
@@ -1595,7 +1595,7 @@ void btm_ble_connection_established(const RawAddress& bda) {
}
// Encrypt the link if device is bonded
- if (com::android::bluetooth::flags::le_enc_on_reconnection() &&
+ if (com::android::bluetooth::flags::le_enc_on_reconnect() &&
p_dev_rec->sec_rec.is_le_link_key_known()) {
btm_ble_set_encryption(bda, BTM_BLE_SEC_ENCRYPT,
p_dev_rec->role_central ? HCI_ROLE_CENTRAL : HCI_ROLE_PERIPHERAL);
diff --git a/system/stack/btm/btm_sec.cc b/system/stack/btm/btm_sec.cc
index 6783fc48ed..5251baa7eb 100644
--- a/system/stack/btm/btm_sec.cc
+++ b/system/stack/btm/btm_sec.cc
@@ -1029,7 +1029,7 @@ tBTM_STATUS BTM_SetEncryption(const RawAddress& bd_addr, tBT_TRANSPORT transport
: p_dev_rec->sec_rec.classic_link;
/* Enqueue security request if security is active */
- if (!com::android::bluetooth::flags::le_enc_on_reconnection()) {
+ if (!com::android::bluetooth::flags::le_enc_on_reconnect()) {
if (p_dev_rec->sec_rec.p_callback ||
(p_dev_rec->sec_rec.le_link != tSECURITY_STATE::IDLE &&
p_dev_rec->sec_rec.classic_link != tSECURITY_STATE::IDLE)) {
@@ -4993,7 +4993,7 @@ static void btm_sec_check_pending_enc_req(tBTM_SEC_DEV_REC* p_dev_rec, tBT_TRANS
node = list_next(node);
log::debug("btm_sec_check_pending_enc_req : sec_act=0x{:x}", p_e->sec_act);
if (p_e->bd_addr == p_dev_rec->bd_addr && p_e->psm == 0 && p_e->transport == transport) {
- if (!com::android::bluetooth::flags::le_enc_on_reconnection()) {
+ if (!com::android::bluetooth::flags::le_enc_on_reconnect()) {
if (encr_enable == 0 || transport == BT_TRANSPORT_BR_EDR ||
p_e->sec_act == BTM_BLE_SEC_ENCRYPT || p_e->sec_act == BTM_BLE_SEC_ENCRYPT_NO_MITM ||
(p_e->sec_act == BTM_BLE_SEC_ENCRYPT_MITM &&