summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc1
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh1
2 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
index 1add34c..d868438 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc
@@ -84,8 +84,9 @@ int card_check_rfmon_datalink (char *device)
84 int datalinktype=0; 84 int datalinktype=0;
85 pcap_t *phandle; 85 pcap_t *phandle;
86 phandle = pcap_open_live(device, 65,0,0,NULL); 86 phandle = pcap_open_live(device, 65,0,0,NULL);
87 datalinktype = pcap_datalink (phandle); 87 datalinktype = pcap_datalink (phandle);
88 pcap_close(phandle);
88 89
89 if (datalinktype != DLT_IEEE802_11) /* Rawmode is IEEE802_11 */ 90 if (datalinktype != DLT_IEEE802_11) /* Rawmode is IEEE802_11 */
90 { 91 {
91 return 0; 92 return 0;
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index babb109..4eec122 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -13,9 +13,8 @@
13#include <arpa/inet.h> 13#include <arpa/inet.h>
14#include <sys/ioctl.h> 14#include <sys/ioctl.h>
15#include <linux/if.h> 15#include <linux/if.h>
16 16
17
18extern "C" 17extern "C"
19{ 18{
20#include <net/bpf.h> 19#include <net/bpf.h>
21#include <pcap.h> 20#include <pcap.h>