When a Broadcast Sink acting as a Scan Delegator probes a Broadcaster with
the help of a Broadcast Assistant, a new BAP session is added for the
Broadcaster device before additional session information is initialized
(like the bt_bap session). This causes the bap debug func to not be set
in bap_data_add.
This commit adds an explicit call to set the function after the bt_bap
session is created.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
free(data);
return -EINVAL;
}
+
+ bt_bap_set_debug(data->bap, bap_debug, NULL, NULL);
+
data->bcast_snks = queue_new();
if (!bt_bap_attach(data->bap, NULL)) {