From: "André Dieb Martins" <andre.dieb@signove.com>
To: linux-bluetooth@vger.kernel.org
Cc: "André Dieb Martins" <andre.dieb@signove.com>
Subject: [PATCH 2/2] Implement dumping for evnet LE Connection Update Complete.
Date: Mon, 24 Jan 2011 16:32:39 -0300 [thread overview]
Message-ID: <1295897559-5540-2-git-send-email-andre.dieb@signove.com> (raw)
In-Reply-To: <1295897559-5540-1-git-send-email-andre.dieb@signove.com>
---
parser/hci.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/parser/hci.c b/parser/hci.c
index 41a19b4..64c3b0c 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3532,6 +3532,19 @@ static inline void evt_le_advertising_report_dump(int level, struct frame *frm)
}
}
+static inline void evt_le_conn_update_complete_dump(int level, struct frame *frm)
+{
+ evt_le_connection_update_complete *uevt = frm->ptr;
+
+ p_indent(level, frm);
+ printf("status 0x%2.2x handle %d\n", uevt->status, btohs(uevt->handle));
+
+ p_indent(level, frm);
+ printf("interval %.2fms, latency %.2fms, superv. timeout %.2fms\n",
+ btohs(uevt->interval) * 1.25, btohs(uevt->latency) * 1.25,
+ btohs(uevt->supervision_timeout) * 10.0);
+}
+
static inline void le_meta_ev_dump(int level, struct frame *frm)
{
evt_le_meta_event *mevt = frm->ptr;
@@ -3552,6 +3565,9 @@ static inline void le_meta_ev_dump(int level, struct frame *frm)
case EVT_LE_ADVERTISING_REPORT:
evt_le_advertising_report_dump(level + 1, frm);
break;
+ case EVT_LE_CONN_UPDATE_COMPLETE:
+ evt_le_conn_update_complete_dump(level + 1, frm);
+ break;
default:
raw_dump(level, frm);
break;
--
1.7.1
next prev parent reply other threads:[~2011-01-24 19:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 19:32 [PATCH 1/2] Fix time intervals dumping of LE commands André Dieb Martins
2011-01-24 19:32 ` André Dieb Martins [this message]
2011-01-31 8:36 ` [PATCH 2/2] Implement dumping for evnet LE Connection Update Complete 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=1295897559-5540-2-git-send-email-andre.dieb@signove.com \
--to=andre.dieb@signove.com \
--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