wlantest: Fix the injection of protected broadcast frames
Injecting protected broadcast frames fails because of the unnecessary null check for sta. In case of broadcast frames sta can be null, so remove the check. Reported-by: Janardhan R <janardhanr@posedge.com> Signed-hostap: Chaitanya T K <chaitanyatk@posedge.com>
This commit is contained in:
parent
b691dcb129
commit
409cd147b7
1 changed files with 2 additions and 3 deletions
|
@ -285,9 +285,8 @@ int wlantest_inject(struct wlantest *wt, struct wlantest_bss *bss,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prot != WLANTEST_INJECT_UNPROTECTED &&
|
if (prot != WLANTEST_INJECT_UNPROTECTED && bss == NULL) {
|
||||||
(bss == NULL || sta == NULL)) {
|
wpa_printf(MSG_INFO, "No BSS information to inject "
|
||||||
wpa_printf(MSG_INFO, "No BSS/STA information to inject "
|
|
||||||
"protected frames");
|
"protected frames");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue