aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-07-27 12:23:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-07-27 12:23:25 +0000
commit3e349eeb068d58c8fcd2100a46866b177d5fe8a0 (patch)
tree472ab7d98907de5c429d0c83cdb545f024567ad3
parent09ff1e93a3319a11c51c929877fdebddcd78bcf0 (diff)
downloadhcidump-3e349eeb068d58c8fcd2100a46866b177d5fe8a0.tar.gz
Fix daemon format setting
-rw-r--r--src/hcidump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hcidump.c b/src/hcidump.c
index b6d45f6..8b437ea 100644
--- a/src/hcidump.c
+++ b/src/hcidump.c
@@ -178,6 +178,9 @@ static void process_frames(int dev, int sock, int fd, unsigned long flags)
char *buf, *ctrl;
int len, hdr_size = HCIDUMP_HDR_SIZE;
+ if (mode == SERVER)
+ flags |= DUMP_BTSNOOP;
+
if (snap_len < SNAP_LEN)
snap_len = SNAP_LEN;
@@ -213,8 +216,6 @@ static void process_frames(int dev, int sock, int fd, unsigned long flags)
if (mode == SERVER) {
struct btsnoop_hdr *hdr = (void *) buf;
- flags |= DUMP_BTSNOOP;
-
btsnoop_version = 1;
btsnoop_type = 1002;