summaryrefslogtreecommitdiff
path: root/src/adapter.c
diff options
context:
space:
mode:
authorSimon Mikuda <simon.mikuda@streamunlimited.com>2022-11-18 06:26:10 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-11-21 16:43:00 -0800
commit9f5036834ba20226456acc0c430642ce36d4eecc (patch)
treeb8fec6f1b0cd4539ce364298c4b46916c7d9c0f5 /src/adapter.c
parent5a872af406ca2d432e79d978f23a85771c7ce6ea (diff)
downloadbluez-9f5036834ba20226456acc0c430642ce36d4eecc.tar.gz
main.conf: Add SecureConnections option
This introduces SecureConnections option to main.conf that can be used to configure this on adapter initialization. This is useful for: - disable for adapters that have a problems with SecureConnections enabled - if you want to disable CTKD (cross transport key derivation) - add option to enable only SecureConnections
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 8fb2acdc8..aadad4016 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -10146,7 +10146,8 @@ static void read_info_complete(uint8_t status, uint16_t length,
}
if (missing_settings & MGMT_SETTING_SECURE_CONN)
- set_mode(adapter, MGMT_OP_SET_SECURE_CONN, 0x01);
+ set_mode(adapter, MGMT_OP_SET_SECURE_CONN,
+ btd_opts.secure_conn);
if (adapter->supported_settings & MGMT_SETTING_PRIVACY)
set_privacy(adapter, btd_opts.privacy);