summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-08-20 13:38:54 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-08-20 16:47:29 +0300
commit31d74307597c337ca69d36a243bd3a59637b3344 (patch)
tree4c7e9e69f12e1a4480308bcf1b2b77b3379bf286 /client
parenta29d610d25c4a4248cd341cb015cbff9f79c787f (diff)
downloadbluez-31d74307597c337ca69d36a243bd3a59637b3344.tar.gz
client: Allow UUID 16 bits on select-attribute
This allow passing UUIDs on 16 bits format.
Diffstat (limited to 'client')
-rw-r--r--client/gatt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/gatt.c b/client/gatt.c
index e03ef9679..1de87364d 100644
--- a/client/gatt.c
+++ b/client/gatt.c
@@ -526,6 +526,9 @@ static GDBusProxy *select_proxy_by_uuid(GDBusProxy *parent, const char *uuid,
if (strcasecmp(uuid, value) == 0)
return proxy;
+
+ if (strlen(uuid) == 4 && !strncasecmp(value + 4, uuid, 4))
+ return proxy;
}
return NULL;