diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 7e87d12..26fd465 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
setup->id = 0;
}
+ if (ep->data->service)
+ service_set_connecting(ep->data->service);
+
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
return -EINVAL;
}
+ if (!bt_bap_attach(data->bap, NULL)) {
+ error("BAP unable to attach");
+ return -EINVAL;
+ }
+
bap_data_add(data);
data->ready_id = bt_bap_ready_register(data->bap, bap_ready, service,
.remote_uuid = BCAAS_UUID_STR,
.device_probe = bap_bcast_probe,
.device_remove = bap_bcast_remove,
+ .disconnect = bap_disconnect,
.auto_connect = false,
.experimental = true,
};