aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-01-17 10:55:30 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-17 10:55:30 (GMT)
commit25315176008ba41ac20b00d748ae75e5869f890f (patch)
treefd079490d14b0ca97238276ebe64c2d769249e17 /wlantest/wlantest.c
parentdc013f1e37df3462085cf01a13f0c432f146ad7a (diff)
downloadhostap-25315176008ba41ac20b00d748ae75e5869f890f.zip
hostap-25315176008ba41ac20b00d748ae75e5869f890f.tar.gz
hostap-25315176008ba41ac20b00d748ae75e5869f890f.tar.bz2
wlantest: Add -F option for assuming FCS is included
When using DLT_IEEE802_11 datalink type in a pcap file, wlantest can now be instructed to assume there is an FCS included in the frame by adding the new -F command line argument. This will make wlantest validate the FCS and strip it from the frame before processing. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wlantest/wlantest.c')
-rw-r--r--wlantest/wlantest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wlantest/wlantest.c b/wlantest/wlantest.c
index 094ed17..9856d6b 100644
--- a/wlantest/wlantest.c
+++ b/wlantest/wlantest.c
@@ -25,7 +25,7 @@ static void wlantest_terminate(int sig, void *signal_ctx)
static void usage(void)
{
- printf("wlantest [-cddhqq] [-i<ifname>] [-r<pcap file>] "
+ printf("wlantest [-cddhqqF] [-i<ifname>] [-r<pcap file>] "
"[-p<passphrase>]\n"
" [-I<wired ifname>] [-R<wired pcap file>] "
"[-P<RADIUS shared secret>]\n"
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
wlantest_init(&wt);
for (;;) {
- c = getopt(argc, argv, "cdf:hi:I:p:P:qr:R:w:W:");
+ c = getopt(argc, argv, "cdf:Fhi:I:p:P:qr:R:w:W:");
if (c < 0)
break;
switch (c) {
@@ -223,6 +223,9 @@ int main(int argc, char *argv[])
if (add_pmk_file(&wt, optarg) < 0)
return -1;
break;
+ case 'F':
+ wt.assume_fcs = 1;
+ break;
case 'h':
usage();
return 0;