Diff between 280c9523a490e8ed6d609b8b0d8bfde51013e48b and 165e57e744e6bc3d879f4b9870f58284b6d38cf6
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/bap.c | +4 | -0 | modified |
Full Patch
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index f39a404..d90d39b 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1783,6 +1783,10 @@ static int setup_config(struct bap_setup *setup, bap_setup_ready_func_t cb,
bt_bap_stream_metadata(setup->stream, setup->metadata, NULL,
NULL);
+ /* Don't set ready* field if there is no callback pending */
+ if (!setup->id)
+ return 0;
+
setup->readying = true;
setup->ready_cb = cb;
setup->ready_cb_data = user_data;