summaryrefslogtreecommitdiff
path: root/host/libubertooth
diff options
context:
space:
mode:
authorDominic Spill <dominicgs@gmail.com>2016-03-10 13:02:57 +0000
committerDominic Spill <dominicgs@gmail.com>2016-03-10 13:02:57 +0000
commit46072a5c9d49a64552660687a790c69353770fd8 (patch)
treebc55dac1f64f20c8d373bc3c30ad6a9e61febcd1 /host/libubertooth
parent21f8ea290abee16c0d4a6bb168ee4886c850d5b7 (diff)
Remove ENABLE_PCAP checks
Diffstat (limited to 'host/libubertooth')
-rw-r--r--host/libubertooth/src/ubertooth.c5
-rw-r--r--host/libubertooth/src/ubertooth.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/host/libubertooth/src/ubertooth.c b/host/libubertooth/src/ubertooth.c
index 5f8287a..7c1b0b7 100644
--- a/host/libubertooth/src/ubertooth.c
+++ b/host/libubertooth/src/ubertooth.c
@@ -519,7 +519,6 @@ void ubertooth_stop(ubertooth_t* ut)
libusb_close(ut->devh);
libusb_exit(NULL);
-#ifdef ENABLE_PCAP
if (ut->h_pcap_bredr) {
btbb_pcap_close(ut->h_pcap_bredr);
ut->h_pcap_bredr = NULL;
@@ -528,7 +527,6 @@ void ubertooth_stop(ubertooth_t* ut)
lell_pcap_close(ut->h_pcap_le);
ut->h_pcap_le = NULL;
}
-#endif
if (ut->h_pcapng_bredr) {
btbb_pcapng_close(ut->h_pcapng_bredr);
@@ -563,11 +561,8 @@ ubertooth_t* ubertooth_init()
ut->last_clk100ns = 0;
ut->clk100ns_upper = 0;
-#ifdef ENABLE_PCAP
ut->h_pcap_bredr = NULL;
ut->h_pcap_le = NULL;
-#endif
-
ut->h_pcapng_bredr = NULL;
ut->h_pcapng_le = NULL;
diff --git a/host/libubertooth/src/ubertooth.h b/host/libubertooth/src/ubertooth.h
index c6905fc..6515917 100644
--- a/host/libubertooth/src/ubertooth.h
+++ b/host/libubertooth/src/ubertooth.h
@@ -57,11 +57,8 @@ typedef struct {
uint64_t last_clk100ns;
uint64_t clk100ns_upper;
-#ifdef ENABLE_PCAP
btbb_pcap_handle* h_pcap_bredr;
lell_pcap_handle* h_pcap_le;
-#endif
-
btbb_pcapng_handle* h_pcapng_bredr;
lell_pcapng_handle* h_pcapng_le;
} ubertooth_t;