From: Anderson Lizardo <anderson.lizardo@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Anderson Lizardo <anderson.lizardo@openbossa.org>
Subject: [PATCH BlueZ 1/2] mgmtops: Handle "Class Of Device Changed" event
Date: Thu, 23 Feb 2012 11:58:26 -0400 [thread overview]
Message-ID: <1330012707-32536-1-git-send-email-anderson.lizardo@openbossa.org> (raw)
This avoids misleading "Unknown Management opcode 7 (index 0)" errors.
---
plugins/mgmtops.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 4a7bfff..91b4a22 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1587,6 +1587,9 @@ static gboolean mgmt_event(GIOChannel *io, GIOCondition cond, gpointer user_data
case MGMT_EV_NEW_SETTINGS:
mgmt_new_settings(sk, index, buf + MGMT_HDR_SIZE, len);
break;
+ case MGMT_EV_CLASS_OF_DEV_CHANGED:
+ DBG("hci%u Class of Device changed", index);
+ break;
case MGMT_EV_NEW_LINK_KEY:
mgmt_new_link_key(sk, index, buf + MGMT_HDR_SIZE, len);
break;
--
1.7.5.4
next reply other threads:[~2012-02-23 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 15:58 Anderson Lizardo [this message]
2012-02-23 15:58 ` [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling Anderson Lizardo
2012-02-23 20:41 ` 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=1330012707-32536-1-git-send-email-anderson.lizardo@openbossa.org \
--to=anderson.lizardo@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;
as well as URLs for NNTP newsgroup(s).