OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3870d6a
)
Check for HSP_HS_UUID in the probe callback
author
Johan Hedberg
<johan.hedberg@nokia.com>
Sat, 8 Nov 2008 20:31:22 +0000
(22:31 +0200)
committer
Johan Hedberg
<johan.hedberg@nokia.com>
Sat, 8 Nov 2008 20:31:22 +0000
(22:31 +0200)
This change is needed since with the recent UUID matching changes e.g.
the Headset AGW record would match HSP_HS_UUID since it contains it
within the record.
input/manager.c
patch
|
blob
|
history
diff --git
a/input/manager.c
b/input/manager.c
index
9bf9f8a
..
80c9b6b
100644
(file)
--- a/
input/manager.c
+++ b/
input/manager.c
@@
-89,6
+89,12
@@
static int headset_probe(struct btd_device *device, GSList *uuids)
DBG("path %s", path);
+ if (!g_slist_find_custom(uuids, HSP_HS_UUID,
+ (GCompareFunc) strcasecmp))
+ return -EINVAL;
+
+ record = btd_device_get_record(device, uuids->data);
+
if (!record || sdp_get_access_protos(record, &protos) < 0) {
error("Invalid record");
return -EINVAL;