[PATCH hcidump] LE Connection Complete Event dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Print Peer Address and Peer Address Type parameters from LE
Connection Complete Event.
---
 parser/hci.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/parser/hci.c b/parser/hci.c
index f41eec2..3c24cde 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3520,11 +3520,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)
-- 
1.7.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux