zephyr/subsys/bluetooth/audio
Emil Gydesen 52f089af23 Bluetooth: CSIP: Set member: Fix issue with re-registration
The bt_csip_set_member_register kept a counter that was not
decreased when bt_csip_set_member_unregister was called.
This meant that we could register and unregister CSIS,
but we could not re-register once it had been unregistered.

This commit fixes this by removing the counter and instead
rely on the service instance state, which also requires restoring
the original service definition, as well as adding a test that would
have failed with the previous version.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-27 14:45:15 +02:00
..
shell Bluetooth: Audio: Rename ctx type prohibited to none 2025-05-08 01:58:01 +02:00
aics_client.c Bluetooth: AICS: Fix race condition in AICS free inst get 2024-09-20 11:07:57 +02:00
aics_internal.h
aics.c Bluetooth: AICS: Fix check for BT_AICS_INPUT_TYPE 2025-02-15 07:23:37 +01:00
ascs_internal.h Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
ascs.c Bluetooth: Audio: Rename ctx type prohibited to none 2025-05-08 01:58:01 +02:00
audio_internal.h Bluetooth: Audio: Fix includes 2025-05-01 13:42:37 +02:00
audio.c Revert "Bluetooth: Audio: Use generic count_bits to count bits" 2025-03-18 16:39:47 +01:00
bap_base.c Bluetooth: BAP: Remove ISO limitation on BASE parsing 2025-01-17 09:08:16 +01:00
bap_broadcast_assistant.c Bluetooth: BAP: BA: Add check for mixing NO_PREF with specific BIS 2025-05-27 12:02:16 +01:00
bap_broadcast_sink.c Bluetooth: Audio: fix BIS_Sync_State for BASS server 2025-05-16 17:32:28 +02:00
bap_broadcast_source.c Bluetooth: ISO: Make setting ISO data explicit 2025-03-19 10:56:57 +01:00
bap_endpoint.h Bluetooth: BAP: Fix issue with sink recv state notifications 2025-02-06 21:13:15 +01:00
bap_internal.h Bluetooth: Audio: Remove BT_AUDIO_BROADCAST_CODE_SIZE 2024-10-25 22:43:40 +01:00
bap_iso.c Bluetooth: Audio: Fix includes 2025-05-01 13:42:37 +02:00
bap_iso.h Bluetooth: ISO: Make setting ISO data explicit 2025-03-19 10:56:57 +01:00
bap_scan_delegator.c Bluetooth: BAP: SD: Add check for mixing NO_PREF with specific BIS 2025-05-27 12:02:16 +01:00
bap_stream.c tests: Bluetooth: Audio: Use same recv_cb for all tests 2024-11-21 14:47:49 +01:00
bap_stream.h Bluetooth: Audio: Fix includes 2025-05-01 13:42:37 +02:00
bap_unicast_client_internal.h Bluetooth: Audio: Spring cleanup for audio source files 2025-02-04 12:03:04 +01:00
bap_unicast_client.c Bluetooth: ISO: Make setting ISO data explicit 2025-03-19 10:56:57 +01:00
bap_unicast_server.c Bluetooth: Audio: Rename bt_audio_codec_qos -> bt_bap_qos_cfg 2024-10-04 16:34:22 +01:00
bap_unicast_server.h
cap_acceptor.c
cap_commander.c Bluetooth: CAP: Add better active_proc checks 2025-04-07 09:59:08 +02:00
cap_common.c Bluetooth: CAP: Add better active_proc checks 2025-04-07 09:59:08 +02:00
cap_initiator.c Bluetooth: CAP: Broadcast: Add missing ISO test parameters 2025-04-30 10:54:56 +01:00
cap_internal.h Bluetooth: CAP: Add better active_proc checks 2025-04-07 09:59:08 +02:00
cap_stream.c Bluetooth: CAP: Add support for handling ASE errors 2024-10-23 16:53:44 +02:00
ccid.c Bluetooth: CCID: Make the CCID API public 2024-10-15 04:10:28 -04:00
ccp_call_control_client.c Bluetooth: Audio: Fix includes 2025-05-01 13:42:37 +02:00
ccp_call_control_server.c Bluetooth: Audio: Fix includes 2025-05-01 13:42:37 +02:00
CMakeLists.txt Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
codec.c Bluetooth: Audio: Add bt_audio_data_get_val 2024-10-25 14:01:42 +02:00
csip_crypto.c Bluetooth: audio: Fix byteorder in csip sef crypto function 2025-01-20 16:28:35 +01:00
csip_crypto.h Bluetooth: CSIP: Update documentation for CSIP crypto functions 2025-02-08 08:13:17 +01:00
csip_internal.h Bluetooth: CSIP: Update documentation for CSIP crypto functions 2025-02-08 08:13:17 +01:00
csip_set_coordinator.c Bluetooth: CSIP: Add support for dynamically setting set size 2025-03-20 14:23:40 +01:00
csip_set_member.c Bluetooth: CSIP: Set member: Fix issue with re-registration 2025-05-27 14:45:15 +02:00
gmap_client.c Bluetooth: GMAP: Replace busy bool with atomic 2024-09-11 14:00:09 -04:00
gmap_server.c Bluetooth: ascs: Add dynamic ASE registration 2024-09-11 07:41:12 -04:00
has_client.c Bluetooth: GATT: Replace magic number 0 with macro for auto ccc 2024-09-26 17:41:24 -04:00
has_internal.h
has.c Bluetooth: Host: Make bt_le_addr_is_bonded public 2025-03-13 10:48:19 +01:00
Kconfig Bluetooth: CCP: Introduce new CCP API 2025-01-08 07:50:32 +01:00
Kconfig.aics Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.ascs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.bap Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
Kconfig.cap Bluetooth: Audio: Update SCAN_DELEGATOR dependency to GATT_DYNAMIC_DB 2024-10-23 16:53:37 +02:00
Kconfig.ccp Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
Kconfig.csip Bluetooth: CSIP: Add support for dynamically setting set size 2025-03-20 14:23:40 +01:00
Kconfig.gmap
Kconfig.has Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.mcs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.mctl
Kconfig.micp Bluetooth: Audio: depends on GATT instead of select 2024-11-21 09:19:47 +01:00
Kconfig.mpl Bluetooth: CCID: Make the CCID API public 2024-10-15 04:10:28 -04:00
Kconfig.pacs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.pbp
Kconfig.tbs Bluetooth: TBS: Ensure sending notifications 2025-03-13 10:27:59 +01:00
Kconfig.tmap Bluetooth: TMAP: Add role validation for bt_tmap_register 2024-12-27 14:09:13 +01:00
Kconfig.vcp Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
Kconfig.vocs Bluetooth: Audio: Add dependency for BT_SMP 2025-02-05 14:57:20 +01:00
mcc_internal.h Bluetooth: MCC: Replace busy bool with atomic 2024-09-11 14:00:16 -04:00
mcc.c Bluetooth: GATT: Replace magic number 0 with macro for auto ccc 2024-09-26 17:41:24 -04:00
mcs_internal.h
mcs.c Bluetooth: Audio: Add common bt_audio_get_max_ntf_size 2025-02-14 19:15:42 +00:00
media_proxy_internal.h
media_proxy.c Bluetooth: Audio: add bt_ prefix when registering logging module 2024-12-09 15:10:57 +01:00
micp_internal.h Bluetooth: MICP: Replace busy bool with atomic 2024-09-12 14:48:40 +02:00
micp_mic_ctlr.c Bluetooth: GATT: Replace magic number 0 with macro for auto ccc 2024-09-26 17:41:24 -04:00
micp_mic_dev.c
mpl_internal.h
mpl.c Bluetooth: MPL: Fix build issues with the MPL shell 2025-01-07 00:27:17 +01:00
pacs_internal.h Bluetooth: BAP: Add common capability check 2025-01-15 19:04:31 +01:00
pacs.c Bluetooth: Audio: Rename ctx type prohibited to none 2025-05-08 01:58:01 +02:00
pbp.c
tbs_client.c Bluetooth: TBS: Client: Fix sizeof('\0') 2025-03-28 12:20:10 +01:00
tbs_internal.h Bluetooth: TBS: Replace busy bool with atomic 2024-09-12 14:48:23 +02:00
tbs.c Bluetooth: TBS: Add support for long read with dirty bit 2025-04-29 13:00:07 +02:00
tmap.c Bluetooth: TMAP: Add role validation for bt_tmap_register 2024-12-27 14:09:13 +01:00
vcp_internal.h Bluetooth: VCP: Replace bools with atomic 2024-09-17 14:52:37 -04:00
vcp_vol_ctlr.c Bluetooth: GATT: Replace magic number 0 with macro for auto ccc 2024-09-26 17:41:24 -04:00
vcp_vol_rend.c
vocs_client.c Bluetooth: VOCS: Replace bools with atomic 2024-09-13 11:38:27 -05:00
vocs_internal.h Bluetooth: VOCS: Replace bools with atomic 2024-09-13 11:38:27 -05:00
vocs.c