[bluez/bluez] 50b5e0: shared/bap: fix invalid BAP server transition rele...
From: Pauli Virtanen <hidden>
Date: 2025-12-08 18:23:41
Branch: refs/heads/1031462 Home: https://github.com/bluez/bluez Commit: 50b5e0a3f7b881b32d71dc3d16671787b4c315d3 https://github.com/bluez/bluez/commit/50b5e0a3f7b881b32d71dc3d16671787b4c315d3 Author: Pauli Virtanen [off-list ref] Date: 2025-12-08 (Mon, 08 Dec 2025) Changed paths: M src/shared/bap.c Log Message: ----------- shared/bap: fix invalid BAP server transition releasing -> qos When remote BAP Client requests Release during streaming, our upper layer calls bap_ucast_disable() when releasing the transport. This causes invalid releasing -> qos transition. Fix by properly checking valid states in stream_disable(); bail out also when in DISABLING and RELEASING. This leaves the valid states ENABLING and STREAMING, so write them explicitly. Log: profiles/audio/transport.c:media_transport_suspend() Transport /org/bluez/hci1/dev_FF_FF_FF_FF_FF_FF/fd0 Owner profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci1/dev_FF_FF_FF_FF_FF_FF/fd0: TRANSPORT_STATE_ACTIVE -> TRANSPORT_STATE_IDLE src/shared/bap.c:stream_disable() stream 0x7c41327f1060 src/shared/bap.c:bap_ucast_set_state() stream 0x7c41327f1060 dir 0x01: releasing -> qos To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications