aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/inject.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-12-17 06:16:12 (GMT)
committerJouni Malinen <j@w1.fi>2010-12-17 06:16:12 (GMT)
commitcb384549e2f69f8f7b1afede7d9a2274fd7235ac (patch)
treeb5b25f62d4aa875c7b31c35150880dde52109f4f /wlantest/inject.c
parentef00c78097315b51cea46421ae6e0c98e992c21c (diff)
downloadhostap-cb384549e2f69f8f7b1afede7d9a2274fd7235ac.zip
hostap-cb384549e2f69f8f7b1afede7d9a2274fd7235ac.tar.gz
hostap-cb384549e2f69f8f7b1afede7d9a2274fd7235ac.tar.bz2
wlantest: Remove unnecessary validation code
This condition is already checked above when figuring out whether a key is known and as such, there is no point in keeping this check here.
Diffstat (limited to 'wlantest/inject.c')
-rw-r--r--wlantest/inject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/wlantest/inject.c b/wlantest/inject.c
index 20ec344..51990e4 100644
--- a/wlantest/inject.c
+++ b/wlantest/inject.c
@@ -351,12 +351,6 @@ int wlantest_inject(struct wlantest *wt, struct wlantest_bss *bss,
}
}
- if ((prot == WLANTEST_INJECT_PROTECTED ||
- prot == WLANTEST_INJECT_INCORRECT_KEY) && !protect) {
- wpa_printf(MSG_INFO, "Cannot protect injected frame");
- return -1;
- }
-
if (protect)
return wlantest_inject_prot(
wt, bss, sta, frame, len,