linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH hcidump] LE Connection Complete Event dump
@ 2011-08-30 17:47 Andre Guedes
  2011-09-27 11:57 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Guedes @ 2011-08-30 17:47 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andre Guedes

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH hcidump] LE Connection Complete Event dump
  2011-08-30 17:47 [PATCH hcidump] LE Connection Complete Event dump Andre Guedes
@ 2011-09-27 11:57 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-09-27 11:57 UTC (permalink / raw)
  To: Andre Guedes; +Cc: linux-bluetooth

Hi André,

On Tue, Aug 30, 2011, Andre Guedes wrote:
> Print Peer Address and Peer Address Type parameters from LE
> Connection Complete Event.
> ---
>  parser/hci.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

Applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-27 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 17:47 [PATCH hcidump] LE Connection Complete Event dump Andre Guedes
2011-09-27 11:57 ` Johan Hedberg

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).