diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index a4036bb..864761d 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
static bool pac_found_bcast(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac,
void *user_data)
{
+ struct bap_data *data = user_data;
struct bap_ep *ep;
DBG("lpac %p rpac %p", lpac, rpac);
return true;
}
+ /* Mark the device as connetable if an Endpoint is registered */
+ btd_device_set_connectable(data->device, true);
+
return true;
}
error("BAP service not handled by profile");
return;
}
+
+ bap_data_remove(data);
}
static int bap_probe(struct btd_service *service)