mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-06 20:24:06 -05:00
wlantest: Fix management frame injection
The TDLS special case was supposed to apply to only Data frames.
This commit is contained in:
parent
d19f5fc881
commit
880a97dc5d
@ -216,7 +216,8 @@ static int wlantest_inject_prot(struct wlantest *wt, struct wlantest_bss *bss,
|
|||||||
hdrlen = 24;
|
hdrlen = 24;
|
||||||
fc = le_to_host16(hdr->frame_control);
|
fc = le_to_host16(hdr->frame_control);
|
||||||
|
|
||||||
if ((fc & (WLAN_FC_TODS | WLAN_FC_FROMDS)) == 0) {
|
if (WLAN_FC_GET_TYPE(fc) == WLAN_FC_TYPE_DATA &&
|
||||||
|
(fc & (WLAN_FC_TODS | WLAN_FC_FROMDS)) == 0) {
|
||||||
struct wlantest_sta *sta2;
|
struct wlantest_sta *sta2;
|
||||||
bss = bss_get(wt, hdr->addr3);
|
bss = bss_get(wt, hdr->addr3);
|
||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user