aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/readpcap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-12-04 19:18:21 (GMT)
committerJouni Malinen <j@w1.fi>2010-12-04 19:18:21 (GMT)
commit0f3e4f2a8347930b1f31131b59157bfffa24ced6 (patch)
treeb7d7c1992b2df15cdfaae238131460792eaf7a75 /wlantest/readpcap.c
parent350132bec50b2dcc907082f1e9099cd006defedd (diff)
downloadhostap-0f3e4f2a8347930b1f31131b59157bfffa24ced6.zip
hostap-0f3e4f2a8347930b1f31131b59157bfffa24ced6.tar.gz
hostap-0f3e4f2a8347930b1f31131b59157bfffa24ced6.tar.bz2
wlantest: Add support for reading DLT_IEEE802_11 pcap files
Diffstat (limited to 'wlantest/readpcap.c')
-rw-r--r--wlantest/readpcap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wlantest/readpcap.c b/wlantest/readpcap.c
index ecb5ae2..f2f6e92 100644
--- a/wlantest/readpcap.c
+++ b/wlantest/readpcap.c
@@ -36,7 +36,8 @@ int read_cap_file(struct wlantest *wt, const char *fname)
return -1;
}
dlt = pcap_datalink(pcap);
- if (dlt != DLT_IEEE802_11_RADIO && dlt != DLT_PRISM_HEADER) {
+ if (dlt != DLT_IEEE802_11_RADIO && dlt != DLT_PRISM_HEADER &&
+ dlt != DLT_IEEE802_11) {
wpa_printf(MSG_ERROR, "Unsupported pcap datalink type: %d",
dlt);
pcap_close(pcap);
@@ -82,6 +83,8 @@ int read_cap_file(struct wlantest *wt, const char *fname)
case DLT_PRISM_HEADER:
wlantest_process_prism(wt, data, hdr->caplen);
break;
+ case DLT_IEEE802_11:
+ wlantest_process_80211(wt, data, hdr->caplen);
}
}