diff mbox series

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

Message ID 20221129204556.1535821-4-luiz.dentz@gmail.com (mailing list archive)
State Superseded
Headers show
Series [BlueZ,1/5] shared/bap: Fix not reading all instances of PAC Sinks/Sources | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Luiz Augusto von Dentz Nov. 29, 2022, 8:45 p.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;