diff mbox series

[BlueZ,v2,4/8] bap: Fix not able to reconfigure

Message ID 20221202005051.2401504-4-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v2,1/8] shared/bap: Fix not reading all instances of PAC Sinks/Sources | expand

Commit Message

Luiz Augusto von Dentz Dec. 2, 2022, 12:50 a.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

While attempting to configure QoS setting the request id is not reset
to 0 when a response is received which prevents any the QoS to be
reconfigured.
---
 profiles/audio/bap.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 67aba3bd76d9..9cee9fd030da 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -366,6 +366,8 @@  static void qos_cb(struct bt_bap_stream *stream, uint8_t code, uint8_t reason,
 
 	DBG("stream %p code 0x%02x reason 0x%02x", stream, code, reason);
 
+	ep->id = 0;
+
 	if (!ep->msg)
 		return;