Skip to content

Commit da1dda2

Browse files
Thalleykoffes
authored andcommitted
[nrf fromtree] Bluetooth: CSIP: Rename BT_CSIP_SET_MEMBER_NOTIFIABLE
Renamed BT_CSIP_SET_MEMBER_NOTIFIABLE to BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE to be more specific. Signed-off-by: Emil Gydesen <[email protected]> (cherry picked from commit 501b95f)
1 parent 548b7d9 commit da1dda2

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

doc/connectivity/bluetooth/shell/audio/cap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Setting a new SIRK
4040

4141
This command can modify the currently used SIRK. To get the new RSI to advertise on air,
4242
:code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data.
43-
If :code:`CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE` is enabled, this will also notify connected
43+
If :code:`CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE` is enabled, this will also notify connected
4444
clients.
4545

4646
.. code-block:: console

doc/connectivity/bluetooth/shell/audio/csip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Setting a new SIRK
171171

172172
This command can modify the currently used SIRK. To get the new RSI to advertise on air,
173173
:code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data.
174-
If :code:`CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE` is enabled, this will also notify connected
174+
If :code:`CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE` is enabled, this will also notify connected
175175
clients.
176176

177177
.. code-block:: console

doc/releases/migration-guide-4.2.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ Device Drivers and Devicetree
4444
Bluetooth
4545
*********
4646

47+
Bluetooth Audio
48+
===============
49+
50+
* ``CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE`` has been renamed to
51+
:kconfig:option:`CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE``. (:github:`86763``)
52+
4753
Bluetooth Host
4854
==============
4955

subsys/bluetooth/audio/Kconfig.csip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ config BT_CSIP_SET_MEMBER_MAX_INSTANCE_COUNT
4646
Enabling BT_CAP_ACCEPTOR_SET_MEMBER will take one of the allocated
4747
instances.
4848

49-
config BT_CSIP_SET_MEMBER_NOTIFIABLE
49+
config BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE
5050
bool "SIRK notifiable Support"
5151
help
5252
This option enables support for clients to be notified on SIRK changes.

subsys/bluetooth/audio/csip_set_member.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ static ssize_t read_sirk(struct bt_conn *conn, const struct bt_gatt_attr *attr,
291291
sirk, sizeof(*sirk));
292292
}
293293

294-
#if defined(CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE)
294+
#if defined(CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE)
295295
static void sirk_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value)
296296
{
297297
LOG_DBG("value 0x%04x", value);
298298
}
299-
#endif /* CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE */
299+
#endif /* CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE */
300300

301301
static ssize_t read_set_size(struct bt_conn *conn,
302302
const struct bt_gatt_attr *attr,
@@ -620,7 +620,7 @@ static struct bt_conn_auth_info_cb auth_callbacks = {
620620
.bond_deleted = csip_bond_deleted
621621
};
622622

623-
#if defined(CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE)
623+
#if defined(CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE)
624624
#define BT_CSIS_CHR_SIRK(_csip) \
625625
BT_AUDIO_CHRC(BT_UUID_CSIS_SIRK, BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY, \
626626
BT_GATT_PERM_READ_ENCRYPT, read_sirk, NULL, &_csip), \
@@ -629,7 +629,7 @@ static struct bt_conn_auth_info_cb auth_callbacks = {
629629
#define BT_CSIS_CHR_SIRK(_csip) \
630630
BT_AUDIO_CHRC(BT_UUID_CSIS_SIRK, BT_GATT_CHRC_READ, BT_GATT_PERM_READ_ENCRYPT, read_sirk, \
631631
NULL, &_csip)
632-
#endif /* CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE */
632+
#endif /* CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE */
633633

634634
#define BT_CSIP_SERVICE_DEFINITION(_csip) {\
635635
BT_GATT_PRIMARY_SERVICE(BT_UUID_CSIS), \
@@ -775,7 +775,7 @@ static void notify_cb(struct bt_conn *conn, void *data)
775775
sizeof(svc_inst->set_lock));
776776
}
777777

778-
if (IS_ENABLED(CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE) &&
778+
if (IS_ENABLED(CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE) &&
779779
atomic_test_and_clear_bit(client->flags, FLAG_NOTIFY_SIRK)) {
780780
notify(svc_inst, conn, BT_UUID_CSIS_SIRK, &svc_inst->sirk,
781781
sizeof(svc_inst->sirk));

tests/bsim/bluetooth/audio/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ CONFIG_BT_MICP_MIC_CTLR_MAX_AICS_INST=2
8888
# Coordinated Set Identification
8989
CONFIG_BT_CSIP_SET_MEMBER=y
9090
CONFIG_BT_CSIP_SET_MEMBER_TEST_SAMPLE_DATA=y
91-
CONFIG_BT_CSIP_SET_MEMBER_NOTIFIABLE=y
91+
CONFIG_BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE=y
9292
CONFIG_BT_CSIP_SET_COORDINATOR=y
9393
CONFIG_BT_CSIP_SET_COORDINATOR_TEST_SAMPLE_DATA=y
9494

0 commit comments

Comments
 (0)