aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest')
-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,