From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Subject: [PATCH BlueZ] Fix registering HoG service for non-HoG profiles
Date: Mon, 8 Oct 2012 21:04:34 -0300 [thread overview]
Message-ID: <1349741074-16665-1-git-send-email-vinicius.gomes@openbossa.org> (raw)
We need to handle the case that the device has multiple HoG services,
but before registering we must check the service UUID.
---
profiles/input/hog_manager.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/profiles/input/hog_manager.c b/profiles/input/hog_manager.c
index 362c38a..9dbaff2 100644
--- a/profiles/input/hog_manager.c
+++ b/profiles/input/hog_manager.c
@@ -91,6 +91,9 @@ static int hog_device_probe(struct btd_profile *p, struct btd_device *device,
struct gatt_primary *prim = l->data;
struct hog_device *hogdev;
+ if (strcmp(prim->uuid, HOG_UUID) != 0)
+ continue;
+
hogdev = hog_device_register(device, prim);
if (hogdev == NULL)
continue;
--
1.7.12.2
next reply other threads:[~2012-10-09 0:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 0:04 Vinicius Costa Gomes [this message]
2012-10-09 8:53 ` [PATCH BlueZ] Fix registering HoG service for non-HoG profiles Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349741074-16665-1-git-send-email-vinicius.gomes@openbossa.org \
--to=vinicius.gomes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox