For the BAP Broadcast Assistant/Scan Delegator implementation (BASS Client/Server), BAP sessions with Broadcasters are notified in the bap_attached/bap_detached callbacks registered by BASS. The associated btd_service must be available in the bt_bap user data, to match the session with the Broadcaster device. This patch updates the way bt_bap user data is handled, to ensure the above. Iulia Tanasescu (3): bap: Do not clear user_data before detaching bt_bap bap: Do not set adapter as bt_bap user_data bass: Add checks for bap user data profiles/audio/bap.c | 5 +---- profiles/audio/bass.c | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 9 deletions(-) base-commit: 264bf951f2d687f520898fa3e182291f1261e3a7 -- 2.43.0