From fde23152d3773eb9b61879c7a2d2a60b64c5c73f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 14 Apr 2014 14:47:38 +0300 Subject: [PATCH] core/profile: Fix regression when registering for client only This got introduced with PCE that register a record for PBAP client, but it end up causing a regression where all profiles that have records would be probed as if server was enabled as well. Note that is was possible to register PBAP client with PCE record, in that case Role option should be omitted so both server and client role are enabled by default which does not affect PBAP server component since it uses a different UUID, in fact the correct form to add PCE record is probably to register as server only. --- src/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index f06523536..f30f4f6af 100644 --- a/src/profile.c +++ b/src/profile.c @@ -2209,7 +2209,7 @@ static struct ext_profile *create_ext(const char *owner, const char *path, p->local_uuid = ext->service ? ext->service : ext->uuid; p->remote_uuid = ext->remote_uuid; - if (ext->enable_server || ext->record || ext->get_record) { + if (ext->enable_server) { p->adapter_probe = ext_adapter_probe; p->adapter_remove = ext_adapter_remove; } -- 2.47.3