aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-25 16:37:33 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-26 11:37:06 (GMT)
commitae98e1f5b2fc245439f828e9b10f780846aa815b (patch)
treeca77ca01f4623db8c307b60d53fba7659d2d654f /wlantest/rx_mgmt.c
parentf4bfa2d27f407159e15848e2b6579fbc71e46aca (diff)
downloadhostap-ae98e1f5b2fc245439f828e9b10f780846aa815b.zip
hostap-ae98e1f5b2fc245439f828e9b10f780846aa815b.tar.gz
hostap-ae98e1f5b2fc245439f828e9b10f780846aa815b.tar.bz2
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>
Diffstat (limited to 'wlantest/rx_mgmt.c')
-rw-r--r--wlantest/rx_mgmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index a2df0e9..c6ff718 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -86,6 +86,7 @@ static void rx_mgmt_probe_resp(struct wlantest *wt, const u8 *data, size_t len)
if (bss == NULL)
return;
+ bss->counters[WLANTEST_BSS_COUNTER_PROBE_RESPONSE]++;
bss->capab_info = le_to_host16(mgmt->u.probe_resp.capab_info);
if (ieee802_11_parse_elems(mgmt->u.probe_resp.variable,
len - (mgmt->u.probe_resp.variable - data),