aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Dieb Martins <andre.dieb@signove.com>2011-01-24 16:32:39 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-01-31 10:35:54 +0200
commitb426956e64104a0561d8e6b10e4cc66ffee3cb9b (patch)
tree686e98bf038da315a94294b93d1f4c4a5625dac1
parent713d10682f4232ada10f302b99feff63498d269c (diff)
downloadbluez-hcidump-b426956e64104a0561d8e6b10e4cc66ffee3cb9b.tar.gz
bluez-hcidump-b426956e64104a0561d8e6b10e4cc66ffee3cb9b.tar.xz
bluez-hcidump-b426956e64104a0561d8e6b10e4cc66ffee3cb9b.zip
Implement dumping for evnet LE Connection Update Complete.
-rw-r--r--parser/hci.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/parser/hci.c b/parser/hci.c
index 8299403..6f9e2a3 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3532,6 +3532,20 @@ 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 +3566,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;