aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_data.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-18 17:05:29 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-18 17:05:29 (GMT)
commit6d5ce9fc90df8c7f27a80348e7362f930d28f987 (patch)
treed1ce1f6f9c061dd1deff664eb1a313a74fbc2677 /wlantest/rx_data.c
parentd356bd630b6876866ca70e177a2b9eca13fb1e35 (diff)
downloadhostap-6d5ce9fc90df8c7f27a80348e7362f930d28f987.zip
hostap-6d5ce9fc90df8c7f27a80348e7362f930d28f987.tar.gz
hostap-6d5ce9fc90df8c7f27a80348e7362f930d28f987.tar.bz2
wlantest: Add BSS/STA statistics counters
These counters can be cleared and queried from external programs to script various testing tasks.
Diffstat (limited to 'wlantest/rx_data.c')
-rw-r--r--wlantest/rx_data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c
index 487d052..56c4954 100644
--- a/wlantest/rx_data.c
+++ b/wlantest/rx_data.c
@@ -149,6 +149,7 @@ static int try_pmk(struct wlantest_bss *bss, struct wlantest_sta *sta,
wpa_printf(MSG_INFO, "Derived PTK for STA " MACSTR " BSSID " MACSTR,
MAC2STR(sta->addr), MAC2STR(bss->bssid));
+ sta->counters[WLANTEST_STA_COUNTER_PTK_LEARNED]++;
os_memcpy(&sta->ptk, &ptk, sizeof(ptk));
wpa_hexdump(MSG_DEBUG, "PTK:KCK", sta->ptk.kck, 16);
wpa_hexdump(MSG_DEBUG, "PTK:KEK", sta->ptk.kek, 16);