mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wlantest: Add a BSS probe_response counter
This can be used to verify whether an AP replies to a Probe Request frame. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f4bfa2d27f
commit
ae98e1f5b2
@ -86,6 +86,7 @@ static void rx_mgmt_probe_resp(struct wlantest *wt, const u8 *data, size_t len)
|
|||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
bss->counters[WLANTEST_BSS_COUNTER_PROBE_RESPONSE]++;
|
||||||
bss->capab_info = le_to_host16(mgmt->u.probe_resp.capab_info);
|
bss->capab_info = le_to_host16(mgmt->u.probe_resp.capab_info);
|
||||||
if (ieee802_11_parse_elems(mgmt->u.probe_resp.variable,
|
if (ieee802_11_parse_elems(mgmt->u.probe_resp.variable,
|
||||||
len - (mgmt->u.probe_resp.variable - data),
|
len - (mgmt->u.probe_resp.variable - data),
|
||||||
|
@ -657,6 +657,7 @@ static const struct bss_counters bss_counters[] = {
|
|||||||
{ "missing_bip_mmie", WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE },
|
{ "missing_bip_mmie", WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE },
|
||||||
{ "bip_deauth", WLANTEST_BSS_COUNTER_BIP_DEAUTH },
|
{ "bip_deauth", WLANTEST_BSS_COUNTER_BIP_DEAUTH },
|
||||||
{ "bip_disassoc", WLANTEST_BSS_COUNTER_BIP_DISASSOC },
|
{ "bip_disassoc", WLANTEST_BSS_COUNTER_BIP_DISASSOC },
|
||||||
|
{ "probe_response", WLANTEST_BSS_COUNTER_PROBE_RESPONSE },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ enum wlantest_bss_counter {
|
|||||||
WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE,
|
WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE,
|
||||||
WLANTEST_BSS_COUNTER_BIP_DEAUTH,
|
WLANTEST_BSS_COUNTER_BIP_DEAUTH,
|
||||||
WLANTEST_BSS_COUNTER_BIP_DISASSOC,
|
WLANTEST_BSS_COUNTER_BIP_DISASSOC,
|
||||||
|
WLANTEST_BSS_COUNTER_PROBE_RESPONSE,
|
||||||
NUM_WLANTEST_BSS_COUNTER
|
NUM_WLANTEST_BSS_COUNTER
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user