diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-02-18 15:46:51 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-02-18 15:46:51 -0800 |
commit | 2e6705b7b7fb136baff1dc67bfb18c567fc2011c (patch) | |
tree | aaf80d5a718032023b1a0206d25bce54ffe6909e /pcap-bt-monitor-linux.c | |
parent | 46d4fb19ef6ef55d80cb92428951011bd41add32 (diff) |
Check for HCI_CHANNEL_MONITOR for Linux Bluetooth Monitor support.
Support the Linux Bluetooth Monitor mechanism if:
we support Linux Bluetooth;
struct sockaddr_hci includes an hci_channel field;
HCI_CHANNEL_MONITOR is defined by the Bluetooth headers;
as there are some 3.x kernel versions in which struct sockaddr_hci
includes an hci_channel field but in which HCI_CHANNEL_MONITOR is not
defined.
Diffstat (limited to 'pcap-bt-monitor-linux.c')
-rw-r--r-- | pcap-bt-monitor-linux.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pcap-bt-monitor-linux.c b/pcap-bt-monitor-linux.c index c96378d0..76c9ee34 100644 --- a/pcap-bt-monitor-linux.c +++ b/pcap-bt-monitor-linux.c @@ -33,8 +33,6 @@ #include "config.h" #endif -#ifdef SOCKADDR_HCI_HAS_HCI_CHANNEL - #include <errno.h> #include <stdlib.h> #include <string.h> @@ -241,4 +239,3 @@ bt_monitor_create(const char *device, char *ebuf, int *is_ours) return p; } -#endif /* SOCKADDR_HCI_HAS_HCI_CHANNEL */
\ No newline at end of file |