diff mbox series

[BlueZ,v1,2/5] bap: Fix passing ep instead of setup to config_cb

Message ID 20240201153820.1016507-2-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1,1/5] client/mgmt: Add missing settings strings | expand

Commit Message

Luiz Augusto von Dentz Feb. 1, 2024, 3:38 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

config_cb expects setup pointer not ep.
---
 profiles/audio/bap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 7faa6be7f90b..7e87d12d02f1 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -948,7 +948,7 @@  static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,
 						&setup->qos, setup->caps);
 
 	setup->id = bt_bap_stream_config(setup->stream, &setup->qos,
-						setup->caps, config_cb, ep);
+						setup->caps, config_cb, setup);
 	if (!setup->id) {
 		DBG("Unable to config stream");
 		setup_free(setup);