summaryrefslogtreecommitdiff
path: root/tools/hcidump.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-07-06 17:58:05 +0000
committerMarcel Holtmann <marcel@holtmann.org>2012-12-17 23:52:52 +0100
commitd52d19afe28b5d244d67ff786df3e0b57ca4bb96 (patch)
tree35bde21af4cc5e546dd555314acdceabea9cba54 /tools/hcidump.c
parent8bca3fbd74e366a85d35ce997a548c4c8916f75c (diff)
downloadbluez-d52d19afe28b5d244d67ff786df3e0b57ca4bb96.tar.gz
hcidump: Handle system events and commands
Diffstat (limited to 'tools/hcidump.c')
-rw-r--r--tools/hcidump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hcidump.c b/tools/hcidump.c
index b7f3e1031..f966c366d 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
@@ -190,7 +190,7 @@ static void process_frames(int dev, int sock, int fd, unsigned long flags)
exit(1);
}
- if (device == HCI_DEV_NONE)
+ if (dev == HCI_DEV_NONE)
printf("system: ");
else
printf("device: hci%d ", dev);
@@ -216,7 +216,9 @@ static void process_frames(int dev, int sock, int fd, unsigned long flags)
/* Process control message */
frm.data_len = len;
+ frm.dev_id = dev;
frm.in = 0;
+
cmsg = CMSG_FIRSTHDR(&msg);
while (cmsg) {
switch (cmsg->cmsg_type) {