From c733363679aa4bf5817b23188d88b75ba7954519 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Tue, 19 Mar 2002 18:19:34 +0000 Subject: [PATCH] hcidump: Fixed filter initialization. --- tools/hcidump.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/hcidump.c b/tools/hcidump.c index eb41b7b01..b9bd4c027 100644 --- a/tools/hcidump.c +++ b/tools/hcidump.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include @@ -212,9 +213,9 @@ static int open_socket(int dev) } /* Setup filter */ - flt.type_mask = ~0; // All packet types - flt.event_mask[0] = ~0L; // All events - flt.event_mask[1] = ~0L; + hci_filter_clear(&flt); + hci_filter_all_ptypes(&flt); + hci_filter_all_events(&flt); if (setsockopt(s, SOL_HCI, HCI_FILTER, &flt, sizeof(flt)) < 0) { perror("Can't set HCI filter"); exit(1); -- 2.47.3