From ed9ee7da438e3111e13bef73329626740ce8c5c6 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 27 Jan 2013 10:40:27 -0600 Subject: [PATCH] core: Allow adding all kinds of UUID for mgmt >= 1.3 Before 1.3 the kernel wouldn't handle 32 and 128 bit UUIDs properly but from that revision onwards any type of UUID can be safely added and removed through mgmt. --- src/adapter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 754966e21..43a9a3a36 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -750,6 +750,10 @@ static bool is_supported_uuid(const uuid_t *uuid) { uuid_t tmp; + /* mgmt versions from 1.3 onwards support all types of UUIDs */ + if (MGMT_VERSION(mgmt_version, mgmt_revision) >= MGMT_VERSION(1, 3)) + return true; + uuid_to_uuid128(&tmp, uuid); if (!sdp_uuid128_to_uuid(&tmp)) -- 2.47.3