diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-07-27 12:23:25 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-07-27 12:23:25 +0000 |
commit | 3e349eeb068d58c8fcd2100a46866b177d5fe8a0 (patch) | |
tree | 472ab7d98907de5c429d0c83cdb545f024567ad3 | |
parent | 09ff1e93a3319a11c51c929877fdebddcd78bcf0 (diff) | |
download | hcidump-3e349eeb068d58c8fcd2100a46866b177d5fe8a0.tar.gz |
Fix daemon format setting
-rw-r--r-- | src/hcidump.c | 5 |
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; |