1# Bluetooth Audio - Broadcast Assistant configuration options
2#
3# Copyright (c) 2020 Bose Corporation
4# Copyright (c) 2021 Nordic Semiconductor ASA
5#
6# SPDX-License-Identifier: Apache-2.0
7#
8
9#################### Coordinated Set Identification Service ####################
10
11config BT_CSIP_SET_MEMBER
12	bool "Coordinated Set Identification Profile Set Member support"
13	depends on BT_GATT_DYNAMIC_DB
14	depends on BT_SMP
15	imply BT_EXT_ADV if BT_PRIVACY
16	help
17	  This option enables support for Coordinated Set Identification
18	  Profile Set Member role and the Coordinated Set Identification
19	  Service.
20
21if BT_CSIP_SET_MEMBER
22
23config BT_CSIP_SET_MEMBER_TEST_SAMPLE_DATA
24	bool "Coordinated Set Identification Service Test Sample Data"
25	help
26	  Enable the use of the sample data defined by the CSIS spec SIRK.
27	  This will use the sample SIRK, prand and LTK.
28
29	  WARNING: This option enables anyone to track and decrypt the SIRK
30	  (if encrypted) using public sample data.
31	  Should not be used for production builds.
32
33config BT_CSIP_SET_MEMBER_ENC_SIRK_SUPPORT
34	bool "Support for encrypted SIRK"
35	default y
36	help
37	  Enables support encrypting the SIRK.
38
39config BT_CSIP_SET_MEMBER_MAX_INSTANCE_COUNT
40	int "Coordinated Set Identification Profile max service instance count"
41	default 1
42	range 1 $(UINT8_MAX)
43	help
44	  This option sets the maximum number of instances of Coordinated Set
45	  Identification Services. If the service is declared as primary service
46	  then only a single instance is possible.
47
48	  Enabling BT_CAP_ACCEPTOR_SET_MEMBER will take one of the allocated
49	  instances.
50
51config BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE
52	bool "SIRK notifiable Support"
53	help
54	  This option enables support for clients to be notified on SIRK changes.
55
56endif # BT_CSIP_SET_MEMBER
57
58#################### Coordinated Set Identification Client ####################
59
60config BT_CSIP_SET_COORDINATOR
61	bool "Coordinated Set Identification Profile Set Coordinator Support"
62	depends on BT_GATT_CLIENT
63	depends on BT_GATT_AUTO_DISCOVER_CCC
64	depends on BT_SMP
65	help
66	  This option enables support for Coordinated Set Identification
67	  Profile Set Coordinator.
68
69if BT_CSIP_SET_COORDINATOR
70
71config BT_CSIP_SET_COORDINATOR_TEST_SAMPLE_DATA
72	bool "Coordinated Set Identification Service Test Sample Data"
73	help
74	  Enable the use of the sample data defined by the CSIS spec.
75	  This will use the sample SIRK, prand and LTK.
76
77	  WARNING: This option enables the client to use the sample data
78	  to locate members and decrypt the SIRK, and thus won't work
79	  with set members that are not using the sample data.
80	  Should not be used for production builds.
81
82config BT_CSIP_SET_COORDINATOR_MAX_CSIS_INSTANCES
83	int "Coordinated Set Identification Service Count"
84	default 1
85	range 1 3
86	help
87	  Sets the number of service instances, which corresponds to the number
88	  of different sets the peer device may be in.
89
90config BT_CSIP_SET_COORDINATOR_ENC_SIRK_SUPPORT
91	bool "Support for encrypted SIRK"
92	default y
93	help
94	  Enables support encrypting the SIRK.
95
96endif # BT_CSIP_SET_COORDINATOR
97