aboutsummaryrefslogtreecommitdiff
path: root/pcap-bt-monitor-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-02-18 15:46:51 -0800
committerGuy Harris <guy@alum.mit.edu>2014-02-18 15:46:51 -0800
commit2e6705b7b7fb136baff1dc67bfb18c567fc2011c (patch)
treeaaf80d5a718032023b1a0206d25bce54ffe6909e /pcap-bt-monitor-linux.c
parent46d4fb19ef6ef55d80cb92428951011bd41add32 (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.c3
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