summaryrefslogtreecommitdiff
path: root/src/main.conf
Commit message (Collapse)AuthorAgeFilesLines
* main.conf: Add CSIP profile configurable optionsSathish Narasimman2023-03-101-0/+25
| | | | | This introduces option to configure main.conf that can be used to configure co-ordinated set identification profile.
* main: Disable EATT by defaultLuiz Augusto von Dentz2023-03-091-2/+2
| | | | | | EATT is causing some problem with some platforms as they also attempt to configure it may cause a connection collision which needs to be handled by the kernel.
* main.conf: Add SecureConnections optionSimon Mikuda2022-11-211-0/+11
| | | | | | | | | | 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
* adapter: Add support for setting ISO Socket experimental featureLuiz Augusto von Dentz2022-07-221-0/+1
| | | | | This adds support for setting ISO Socket experimental UUID which enables the use of BTPROTO_ISO on the system.
* main.conf: Split Kernel Experimental UUIDs from ExperimentalLuiz Augusto von Dentz2022-06-141-2/+6
| | | | | This splits kernel experimental UUIDs from D-Bus Experimental interface so they can be controlled indenpendetly.
* policy: Change AutoEnable default to trueLuiz Augusto von Dentz2022-04-141-2/+2
| | | | | | | This changes the default of AutoEnable to true so controllers are power up by default. Fixes: https://github.com/bluez/bluez/issues/328
* main.conf: Introduce MaxControllersLuiz Augusto von Dentz2022-02-161-0/+4
| | | | | This introduces MaxControllers which can be used to limit the number of adapters exposed in the system.
* main: add configurable RemoteNameRequestRetryDelay parameterArchie Pusaka2021-11-291-0/+5
| | | | | | | | | | This specifies how long will the userspace ignore a peer with an unknown name after a failed remote name resolving procedure. The peer device can still be connected, this only prevents the remote name resolving procedure retry. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* core: Update default advmon Sampling_Period to 0xFFManish Mandlik2021-11-221-2/+6
| | | | | | | | | Update default Advertisemet Monitor Sampling_Period to 0xFF. It indicates that controller will report only one advertisement per monitoring period for a device. This will help reduce the power consumption drastically. Reviewed-by: Miao-chen Chou <mcchou@google.com>
* main.conf: Rework privacy optionsLuiz Augusto von Dentz2021-11-091-5/+20
| | | | | This reworks privacy options so the limited discoverable is only available when controller mode is set to dual.
* main.conf: Fix Privacy modesLuiz Augusto von Dentz2021-11-011-2/+8
| | | | | | | | | Device privacy 0x01 uses RPA regardless of the discoverable setting thus it conforms to network mode not device mode. Also this improves documentation to state what is the expectation of each mode since it may not have been very clear by just using the terms from the spec.
* main.conf: Allow passing a list of UUIDs to ExperimentalLuiz Augusto von Dentz2021-09-081-1/+9
| | | | | | This allows the user to enable a subset of the experimental features to be enabled instead of all of them and also change -E to work in the same way so a list of UUIDs can also be given at the command line.
* main.conf: Revert default for Privacy and ExperimentalLuiz Augusto von Dentz2021-07-291-2/+2
| | | | | Privacy shall be off by default until kernel is stable to support it, also Experimental shall only be enabled for testing purpose.
* btdev: Add proper checks for own_addr_type for LE scan/advLuiz Augusto von Dentz2021-07-191-2/+2
| | | | | | | | | | | | | | | | | | | | | own_addr_type 0x01 and 0x03 shall check that a random address has properly been set: BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E page 2496: 'If LE_Scan_Enable is set to 0x01, the scanning parameters' Own_Address_Type parameter is set to 0x01 or 0x03, and the random ddress for the device has not been initialized, the Controller shall return the error code Invalid HCI Command Parameters (0x12).' BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E page 2614: 'If Enable is set to 0x01, the scanning parameters' Own_Address_Type parameter is set to 0x01 or 0x03, and the random address for the device has not been initialized, the Controller shall return the error code Invalid HCI Command Parameters (0x12).'
* core: Add RSSI sampling period in system parameterYun-Hao Chung2021-05-241-0/+6
| | | | | | | | | Add an option in main.conf to configure the default RSSI sampling period for advertisement monitor. Reviewed-by: apusaka@chromium.org Reviewed-by: mmandlik@chromium.org Reviewed-by: mcchou@chromium.org
* main.conf: Add option to enable experimental featuresLuiz Augusto von Dentz2021-05-141-0/+4
| | | | | | | The adds options Experimental which is the equivalent to -E/--experimental command line option. Fixes https://github.com/bluez/bluez/issues/132
* main.conf: Enable passing false to DeviceIDLuiz Augusto von Dentz2021-03-051-1/+1
| | | | | | | This adds support for setting DeviceID to false so plaforms can disable DeviceID. Fixes: https://github.com/bluez/bluez/issues/101
* main.conf: use correct key for BREDR configurationRonan Pigott2020-11-241-1/+1
|
* main.conf: Add option to configure AVDP session/stream channel modesLuiz Augusto von Dentz2020-11-171-0/+13
| | | | | | | This adds a new group AVDTP where platform can configure the preferred L2CAP channel modes for both session (signalling) and stream (transport). For backward compatibility the both SessionMode and StreamMode defaults to basic mode.
* core: Add param to disable interleave scanHoward Chung2020-10-301-0/+6
| | | | This patch adds parameter to enable/disable the interleave scan feature.
* core: Add parmas to set interleaving durationsHoward Chung2020-10-301-0/+7
| | | | | This patch adds parameters to control the durations of allowlist scan and no-filter scan when the kernel is doing interleaving scan.
* core: Split LE and BR/EDR parametersLuiz Augusto von Dentz2020-10-291-35/+43
| | | | | This splits LE and BR/EDR config parameters and checks main_conf.mode when parsing them.
* policy: Reconnect audio on controller resumeAbhishek Pandit-Subedi2020-09-141-0/+8
| | | | | | | | During system suspend, all peer devices are disconnected. On resume, HID devices will reconnect but audio devices stay disconnected. As a quality of life improvement, mark audio devices that were disconnected due to suspend and attempt to reconnect them when the controller resumes (after a delay for better co-existence with Wi-Fi).
* policy: Enable reconnect for a2dp-sink in defaultsAbhishek Pandit-Subedi2020-09-141-1/+1
| | | | Add a2dp-sink to default reconnects list.
* main: add configurable refresh_discovery parameterArchie Pusaka2020-08-181-0/+4
| | | | | This is to configure the default behavior of issuing SDP query to update the services upon profile connection.
* device: Add timer for removing temporary devicesLuiz Augusto von Dentz2020-07-151-0/+5
| | | | | | | This adds a timer for how long to keep temporary devices, it is updated everytime the device is seen so devices will be removed even during an active discovery session which means the discovering for a long period will no longer just grow without removing devices that disappeared.
* main: Add configurable le autoconnect timeout valueAlain Michaud2020-06-171-0/+1
| | | | This patch adds support for a configurable le autoconnect timer.
* main: Read default system configuration from the conf fileAlain Michaud2020-06-041-0/+65
| | | | | This change adds support for reading the configurations from the main.conf file.
* core: Add support for setting the number of GATT bearersLuiz Augusto von Dentz2020-03-021-0/+5
| | | | | This adds option to set the numbers of GATT Channels/Bearers to be connected in main.conf.
* core: Add new policy for Just-Works repairinghowardchung@google.com2020-02-181-0/+5
| | | | | | | | | | When kernel find out that the incoming Just-Works pairing is initiated by a paired device, it is user space's responsibility to decide the next action. This patch includes the following: - add JustWorksRepairing policy as an option in main.conf - handle the confirmation request from kernel
* main.conf: Make ReverseServiceDiscovery work with LELuiz Augusto von Dentz2019-06-031-3/+5
| | | | | | This makes ReverseServiceDiscovery work properly with LE connection by disabling the GATT client functionality which makes one able to setup a system to operate in peripheral role only mode.
* core: Add AlwaysPairable to main.confLuiz Augusto von Dentz2018-07-301-0/+5
| | | | | | | | | This adds a new option called AlwaysPairable to main.conf, it can be used to enable Adapter.Pairable even in case there is no Agent available. Since that could be consider a security problem to allow pairing without user's consent the option defaults to false.
* main.conf: Rename MinEncKeySize to KeySizeLuiz Augusto von Dentz2018-07-121-1/+1
| | | | | | There is no conflicts, or other key/encryption related parameter, with just calling this parameter KeySize so we don't have to just enter initial for something one can assume it implicitly.
* gatt: Make ATT MTU configurable in main.confDavid Krauser2018-07-121-0/+5
| | | | This adds a new entry to GATT group called ExchangeMTU.
* Add support for requiring min key size for access GATT characteristicsSzymon Janc2018-03-261-0/+5
| | | | | | This allows to configure bluetoothd to require minimum encryption key size when accessing GATT server characteristics. It is a global configuration option affecting whole GATT database.
* core: Remove defunct option AutoConnectTimeoutERAMOTO Masaya2017-10-161-6/+0
| | | | | | Remove the useless option AutoConnectTimeout since the commit dd3f4ca901 ("plugins: remove unmaintained plugins") removed btd_adapter_enable_auto_connect() for which this option was only intended.
* core/gatt: Add GATT.Cache config optionLuiz Augusto von Dentz2017-06-171-0/+12
| | | | | This adds GATT.Cache config option to main.conf which can be used to adjust the cache expected behavior of attributes found over GATT.
* main.conf: Fix adaper/adapter typoNobuhiro Iwamatsu2017-01-161-1/+1
|
* Uncomment section headers in config fileMansour Behabadi2016-12-221-1/+1
| | | | | | If a config key under [Policy] section is uncommented right now, it's assumed to be in [General] section because [Policy] line is commented out and it won't work.
* core/adapter: Add support for enabling privacyMichaƂ Narajowski2016-10-221-0/+7
| | | | | | | | | | This adds support for loading local IRK key when adapter is configured. In case IRK is not present new key is generated and stored. In case of errors privacy is explicitly disabled. We ensure that we memset IRK to zero before disabling privacy. IRK is stored in %s/identity file. Privacy setting is configured globally in main.conf. In the future we may add per device configuration in %s/settings.
* main.conf: Remove spaces in reconnect list parametersLuiz Augusto von Dentz2016-07-291-2/+2
| | | | | These spaces are not removed when parsing the file which may lead to unexpected behavior when using the values commented out as default.
* policy: Add AutoEnable config optionSzymon Janc2015-09-281-0/+5
| | | | | | | | | | | | | This option is used to configure policy for auto enabling adapters when found. This includes adapters found on start as well as adapters that are plugged in later on. Some distributions use legacy "hciconfig hci0 up" in boot-scripts to automatically enable controllers on start. But that is causing SMP kernel code to not being properly initialized. This patch allows distributions to automatically enable adapters in race free manner even if no agent is provided eg. in login screen.
* main.conf: Remove %h and %d from example NameJonas Holmberg2015-09-021-4/+2
| | | | %h and %d are no longer supported.
* policy: Add parameters to control reconnectionLuiz Augusto von Dentz2015-04-081-0/+10
| | | | | This adds ReconnectAttempts and ReconnectIntervals so platforms can fine tune the reconnection strategy.
* core: Mention defaults for ReconnectUUIDsLuiz Augusto von Dentz2015-04-081-1/+1
| | | | This documents the defaults used for ReconnectUUIDs.
* core: Mention FastConnectable kernel requirement in main.confJohan Hedberg2015-03-101-1/+2
|
* core: Add FastConnectable main.conf settingJohan Hedberg2015-03-101-0/+6
|
* core: Add support for Multi Profile SpecificationSzymon Janc2015-02-171-0/+7
| | | | | This adds new main.conf configure option named MultiProfile. It allows to enable MPSD and MPMD scenarios for MPS. By default MPS is disabled.
* core: Fix spelling mistake in configuration file exampleMarcel Holtmann2014-10-161-1/+1
|
* core: Add ControllerMode config optionJohan Hedberg2014-10-101-0/+5
|