aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2011-08-30 14:47:48 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-09-27 14:56:17 +0300
commitf95bf08a506ceca2e1cbd9dd8140f3d22a55f12f (patch)
treee51f5a031fbcc7fb3b1053390cafe492a660c793
parent2ad8345ae5b24e9a8b5ec14326639d95a07a7f19 (diff)
downloadbluez-hcidump-f95bf08a506ceca2e1cbd9dd8140f3d22a55f12f.tar.gz
bluez-hcidump-f95bf08a506ceca2e1cbd9dd8140f3d22a55f12f.tar.xz
bluez-hcidump-f95bf08a506ceca2e1cbd9dd8140f3d22a55f12f.zip
LE Connection Complete Event dump
Print Peer Address and Peer Address Type parameters from LE Connection Complete Event.
-rw-r--r--parser/hci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser/hci.c b/parser/hci.c
index 711c3cc..610177b 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3514,11 +3514,16 @@ static inline void remote_host_features_notify_dump(int level, struct frame *frm
static inline void evt_le_conn_complete_dump(int level, struct frame *frm)
{
evt_le_connection_complete *evt = frm->ptr;
+ char addr[18];
p_indent(level, frm);
printf("status 0x%2.2x handle %d, role %s\n",
evt->status, btohs(evt->handle),
evt->role ? "slave" : "master");
+
+ p_indent(level, frm);
+ p_ba2str(&evt->peer_bdaddr, addr);
+ printf("bdaddr %s (%s)\n", addr, bdaddrtype2str(evt->peer_bdaddr_type));
}
static inline void evt_le_advertising_report_dump(int level, struct frame *frm)