diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-19 18:19:12 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-19 18:19:12 +0000 |
commit | be6ddaecae3cb232e79c2f7bbcc2c9277ec4494b (patch) | |
tree | 1fd94b6a50bfda9d48bcca060417cdaac20e20ef /include | |
parent | 54e7db35ec328da8e131a70d757904f2bbaa2083 (diff) | |
download | bluez-be6ddaecae3cb232e79c2f7bbcc2c9277ec4494b.tar.gz |
HCI filter additions.
Diffstat (limited to 'include')
-rw-r--r-- | include/hci_lib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hci_lib.h b/include/hci_lib.h index 5a5d2ae7c..28a329934 100644 --- a/include/hci_lib.h +++ b/include/hci_lib.h @@ -96,6 +96,10 @@ static inline void hci_filter_set_ptype(int t, struct hci_filter *f) { hci_set_bit((t & HCI_FLT_TYPE_BITS), &f->type_mask); } +static inline void hci_filter_all_ptypes(struct hci_filter *f) +{ + memset((void *)&f->type_mask, 0xff, sizeof(f->type_mask)); +} static inline void hci_filter_set_event(int e, struct hci_filter *f) { hci_set_bit((e & HCI_FLT_EVENT_BITS), &f->event_mask); |