Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc | 1 |
1 files changed, 1 insertions, 0 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 | |||
@@ -82,12 +82,13 @@ int card_into_monitormode (pcap_t **orighandle, char *device, int cardtype) | |||
82 | int card_check_rfmon_datalink (char *device) | 82 | int card_check_rfmon_datalink (char *device) |
83 | { | 83 | { |
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; |
92 | } | 93 | } |
93 | else | 94 | else |