aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-21 19:50:28 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-21 19:50:28 (GMT)
commit783a082ccc8f9dd46cfae6760c6c6958a386080c (patch)
treed9f5c8824a4f3f9ddf768dc3d46136db011377f7 /wlantest/rx_mgmt.c
parentcdd71e307eb5978b0de8bf14eddd6773ad28bf03 (diff)
downloadhostap-783a082ccc8f9dd46cfae6760c6c6958a386080c.zip
hostap-783a082ccc8f9dd46cfae6760c6c6958a386080c.tar.gz
hostap-783a082ccc8f9dd46cfae6760c6c6958a386080c.tar.bz2
wlantest: Add per-BSS counters for BIP deauth/disassoc
Diffstat (limited to 'wlantest/rx_mgmt.c')
-rw-r--r--wlantest/rx_mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index 4921d8d..9b1f061 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -784,6 +784,11 @@ static int check_bip(struct wlantest *wt, const u8 *data, size_t len)
os_memcpy(bss->ipn[keyid], mmie + 2, 6);
bss->counters[WLANTEST_BSS_COUNTER_VALID_BIP_MMIE]++;
+ if (stype == WLAN_FC_STYPE_DEAUTH)
+ bss->counters[WLANTEST_BSS_COUNTER_BIP_DEAUTH]++;
+ else if (stype == WLAN_FC_STYPE_DISASSOC)
+ bss->counters[WLANTEST_BSS_COUNTER_BIP_DISASSOC]++;
+
return 0;
}