diff options
author | Jouni Malinen <j@w1.fi> | 2010-12-17 08:16:12 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-12-17 08:16:12 +0200 |
commit | cb384549e2f69f8f7b1afede7d9a2274fd7235ac (patch) | |
tree | b5b25f62d4aa875c7b31c35150880dde52109f4f | |
parent | ef00c78097315b51cea46421ae6e0c98e992c21c (diff) | |
download | external_wpa_supplicant_8_ti-cb384549e2f69f8f7b1afede7d9a2274fd7235ac.zip external_wpa_supplicant_8_ti-cb384549e2f69f8f7b1afede7d9a2274fd7235ac.tar.gz external_wpa_supplicant_8_ti-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.
-rw-r--r-- | wlantest/inject.c | 6 |
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, |