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:
d5ba48f
)
core: Match remote UUID instead of local one with ConnectProfile
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 14 Dec 2012 09:28:13 +0000
(11:28 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 14 Dec 2012 09:28:13 +0000
(11:28 +0200)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
16ab381
..
3883bd6
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1191,12
+1191,15
@@
static struct btd_profile *find_connectable_profile(struct btd_device *dev,
for (l = dev->profiles; l != NULL; l = g_slist_next(l)) {
struct btd_profile *p = l->data;
+ int i;
- if (!p->connect || !p->
local_uuid
)
+ if (!p->connect || !p->
remote_uuids
)
continue;
- if (strcasecmp(uuid, p->local_uuid) == 0)
- return p;
+ for (i = 0; p->remote_uuids[i] != NULL; i++) {
+ if (strcasecmp(uuid, p->remote_uuids[i]) == 0)
+ return p;
+ }
}
return NULL;