zephyr/subsys/bluetooth/audio
Emil Gydesen ec41dd9ba6 Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE
The LE Audio implementations do not really support bonding yet,
and removing subs on disconnect is the most effective (and correct)
way of ensuring that we do not subscribe more than once when we
re-discover after reconnection.

The broadcast assistant and the media control client does not
support multiple connections as of this commit, so they needed
special treatment. In the case that we do discovery on multiple
ACL connections, it is important that the existing subscriptions
are removed correctly by calling bt_gatt_unsubscribe.

In order to implement this change properly on some of the clients,
thet had no proper connection references or support
for clearing the data on disconnects, they had to be updated
as well.

The csip_notify.sh test has been disabled, as that expected a
notification in the client, but since this commit removes that
(until bonding is properly supported in the clients), then the
test will fail.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-02 09:34:52 -06:00
..
shell Bluetooth: Audio: MCC optional procedures actually optional 2024-02-02 12:42:55 +01:00
aics_client.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
aics_internal.h Bluetooth: aics: Retry sending notification on error 2023-08-24 10:22:12 +02:00
aics.c Bluetooth: Audio: Use utf8_lcpy to copy UTF8 strings with termination. 2024-01-29 10:28:18 +01:00
ascs_internal.h
ascs.c Bluetooth: BAP: Update log for unicast iso recv without endpoint 2024-01-31 17:58:58 -06:00
audio_internal.h Bluetooth: micp_mic_dev: Retry sending notification on error 2023-08-24 10:22:12 +02:00
audio.c Bluetooth: BAP: Refactor bt_bap_base 2023-12-06 17:51:47 +00:00
bap_base.c Bluetooth: BAP: Refactor bt_bap_base 2023-12-06 17:51:47 +00:00
bap_broadcast_assistant.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
bap_broadcast_sink.c Bluetooth: BAP: Fix issue with setting invalid iso data path 2024-01-22 13:09:16 +01:00
bap_broadcast_source.c Bluetooth: BAP: Fix issue with setting invalid iso data path 2024-01-22 13:09:16 +01:00
bap_endpoint.h Bluetooth: BAP: Refactor bt_bap_base 2023-12-06 17:51:47 +00:00
bap_internal.h Bluetooth: Audio: improve BASS state logging to be more readable. 2024-01-29 13:20:18 +01:00
bap_iso.c Bluetooth: BAP: Fix issue with setting invalid iso data path 2024-01-22 13:09:16 +01:00
bap_iso.h Bluetooth: BAP: Fix issue with setting invalid iso data path 2024-01-22 13:09:16 +01:00
bap_scan_delegator.c Bluetooth: audio: fix bug in scan delegator sync 2024-02-01 14:37:40 +01:00
bap_stream.c Bluetooth: Audio: Moved seq_num check 2024-01-31 15:13:10 -06:00
bap_stream.h Bluetooth: BAP: Fix issue with setting invalid iso data path 2024-01-22 13:09:16 +01:00
bap_unicast_client_internal.h Bluetooth: Audio: Refactor bt_audio_codec_cfg to flat arrays 2023-08-28 15:56:53 +02:00
bap_unicast_client.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
bap_unicast_server.c Bluetooth: Audio: Refactor bt_audio_codec_cfg to flat arrays 2023-08-28 15:56:53 +02:00
bap_unicast_server.h Bluetooth: Audio: Refactor bt_audio_codec_cfg to flat arrays 2023-08-28 15:56:53 +02:00
cap_acceptor.c Bluetooth: CSIP: Add bt_csip_set_member_unregister 2024-01-31 21:34:27 -05:00
cap_commander.c Bluetooth: CAP: Commander change volume offset procedure 2024-01-31 21:35:17 -05:00
cap_common.c Bluetooth: CAP: Commander change volume offset procedure 2024-01-31 21:35:17 -05:00
cap_initiator.c Bluetooth: CAP: Commander change volume offset procedure 2024-01-31 21:35:17 -05:00
cap_internal.h Bluetooth: CAP: Commander change volume offset procedure 2024-01-31 21:35:17 -05:00
cap_stream.c Bluetooth: BAP: Add ISO state callbacks 2024-01-22 12:59:11 +01:00
ccid_internal.h Bluetooth: CAP: Commander discovery support 2023-12-19 08:50:40 +01:00
ccid.c Bluetooth: CAP: Add verification of CCIDs as the initiator 2023-10-20 15:05:33 +02:00
CMakeLists.txt Bluetooth: Audio: Add implementation for PBP and dedicated sample apps. 2024-01-09 09:59:23 +01:00
codec.c Bluetooth: Audio: Update return value of {cfg,cap}_get_val 2024-02-01 10:55:31 +01:00
csip_crypto.c Bluetooth: CSIP: Use bt_crypto_aes_cmac instead of own 2024-01-16 09:33:58 -06:00
csip_crypto.h
csip_internal.h Bluetooth: Audio: Change CSIP notification to use Atomic flags 2023-09-27 15:47:33 +02:00
csip_set_coordinator.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
csip_set_member.c Bluetooth: CSIP: Add bt_csip_set_member_unregister 2024-01-31 21:34:27 -05:00
gmap_client.c Bluetooth: GMAP: Add initial implementation of GMAP 2023-12-11 18:30:57 +01:00
gmap_server.c Bluetooth: GMAP: Add initial implementation of GMAP 2023-12-11 18:30:57 +01:00
has_client.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
has_internal.h Bluetooth: audio: has_client: Move bt_has_client structure to header 2024-01-02 10:10:15 +01:00
has.c Bluetooth: has: Fix control point error return code 2023-12-13 09:42:04 +01:00
Kconfig Bluetooth: Audio: Add implementation for PBP and dedicated sample apps. 2024-01-09 09:59:23 +01:00
Kconfig.aics
Kconfig.ascs
Kconfig.bap Bluetooth: audio: BAP: fix Kconfig description 2024-02-01 13:09:17 -06:00
Kconfig.bass
Kconfig.cap Bluetooth: CAP: Move initiator/commander common code to cap_common 2023-12-07 16:14:42 +00:00
Kconfig.csip
Kconfig.gmap Bluetooth: GMAP: Add initial implementation of GMAP 2023-12-11 18:30:57 +01:00
Kconfig.has
Kconfig.mcs Bluetooth: Audio: MCC optional procedures actually optional 2024-02-02 12:42:55 +01:00
Kconfig.mctl
Kconfig.micp
Kconfig.mpl
Kconfig.pacs Bluetooth: PACS: Remove CONFIG_BT_PACS_{SNK,SRC}_CONTEXT 2023-09-22 09:21:53 +02:00
Kconfig.pbp Bluetooth: Audio: Add implementation for PBP and dedicated sample apps. 2024-01-09 09:59:23 +01:00
Kconfig.tbs
Kconfig.tmap
Kconfig.vcp
Kconfig.vocs
mcc_internal.h Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
mcc.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
mcs_internal.h
mcs.c Bluetooth: Audio: Ensure that read callbacks can handle conn == NULL 2024-01-17 11:58:44 -05:00
media_proxy_internal.h
media_proxy.c Bluetooth: Audio: MCC optional procedures actually optional 2024-02-02 12:42:55 +01:00
micp_internal.h bluetooth: audio: Add API to get MICP service ATT handles 2023-09-08 14:43:00 +02:00
micp_mic_ctlr.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
micp_mic_dev.c Bluetooth: micp_mic_dev: Retry sending notification on error 2023-08-24 10:22:12 +02:00
mpl_internal.h Bluetooth: MPL: Add track position notifications during seeking 2023-12-19 08:51:21 +01:00
mpl.c Bluetooth: MPL: Fix track position in playing and stopped state 2024-01-31 21:34:12 -05:00
pacs_internal.h Bluetooth: audio: pacs: Add bt_pacs_set_available_contexts_for_conn 2023-12-06 17:54:14 +00:00
pacs.c Bluetooth: Audio: Ensure that read callbacks can handle conn == NULL 2024-01-17 11:58:44 -05:00
pbp.c Bluetooth: PBP: Fix parsing and return issue with bt_pbp_parse_announcement 2024-01-31 21:33:56 -05:00
tbs_client.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
tbs_internal.h Bluetooth: audio: tbs: Add call_alloc/call_free helper functions 2023-12-22 14:41:00 +00:00
tbs.c Bluetooth: Audio: Use utf8_lcpy to copy UTF8 strings with termination. 2024-01-29 10:28:18 +01:00
tmap.c
vcp_internal.h bluetooth: audio: Add API to get VCP service ATT handles 2023-09-28 13:16:23 +02:00
vcp_vol_ctlr.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
vcp_vol_rend.c Bluetooth: VCP: Vol rend: Add check before notification log 2023-12-06 17:55:10 +00:00
vocs_client.c Bluetooth: Audio: Use BT_GATT_SUBSCRIBE_FLAG_VOLATILE 2024-02-02 09:34:52 -06:00
vocs_internal.h Bluetooth: vocs: Retry sending notification on error 2023-08-24 10:22:12 +02:00
vocs.c Bluetooth: Audio: Use utf8_lcpy to copy UTF8 strings with termination. 2024-01-29 10:28:18 +01:00