From 5acf56f6a2b6dd549c626f77c63db47cffa3c860 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 24 Jan 2011 17:00:28 +0200 Subject: [PATCH] wlantest: Count TDLS Teardown messages --- wlantest/rx_tdls.c | 1 + wlantest/wlantest_cli.c | 1 + wlantest/wlantest_ctrl.h | 1 + 3 files changed, 3 insertions(+) diff --git a/wlantest/rx_tdls.c b/wlantest/rx_tdls.c index af4163425..90f6a13d7 100644 --- a/wlantest/rx_tdls.c +++ b/wlantest/rx_tdls.c @@ -475,6 +475,7 @@ static void rx_data_tdls_teardown(struct wlantest *wt, const u8 *bssid, tdls = get_tdls(wt, elems.link_id, 1, bssid); if (tdls) { tdls->link_up = 0; + tdls->counters[WLANTEST_TDLS_COUNTER_TEARDOWN]++; tdls_verify_mic_teardown(tdls, 4, data, &elems); } } diff --git a/wlantest/wlantest_cli.c b/wlantest/wlantest_cli.c index 05e0121e0..319467760 100644 --- a/wlantest/wlantest_cli.c +++ b/wlantest/wlantest_cli.c @@ -757,6 +757,7 @@ static const struct tdls_counters tdls_counters[] = { { "setup_resp_fail", WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL }, { "setup_conf_ok", WLANTEST_TDLS_COUNTER_SETUP_CONF_OK }, { "setup_conf_fail", WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL }, + { "teardown", WLANTEST_TDLS_COUNTER_TEARDOWN }, { NULL, 0 } }; diff --git a/wlantest/wlantest_ctrl.h b/wlantest/wlantest_ctrl.h index 9bcee2b43..a91b6cd79 100644 --- a/wlantest/wlantest_ctrl.h +++ b/wlantest/wlantest_ctrl.h @@ -119,6 +119,7 @@ enum wlantest_tdls_counter { WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL, WLANTEST_TDLS_COUNTER_SETUP_CONF_OK, WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL, + WLANTEST_TDLS_COUNTER_TEARDOWN, NUM_WLANTEST_TDLS_COUNTER };