aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/inject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wlantest/inject.c b/wlantest/inject.c
index ab8d113..5b14ca7 100644
--- a/wlantest/inject.c
+++ b/wlantest/inject.c
@@ -285,9 +285,8 @@ int wlantest_inject(struct wlantest *wt, struct wlantest_bss *bss,
return -1;
}
- if (prot != WLANTEST_INJECT_UNPROTECTED &&
- (bss == NULL || sta == NULL)) {
- wpa_printf(MSG_INFO, "No BSS/STA information to inject "
+ if (prot != WLANTEST_INJECT_UNPROTECTED && bss == NULL) {
+ wpa_printf(MSG_INFO, "No BSS information to inject "
"protected frames");
return -1;
}