diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2011-01-24 17:00:28 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-01-24 17:00:28 +0200 |
commit | 5acf56f6a2b6dd549c626f77c63db47cffa3c860 (patch) | |
tree | 294c26c61e50116797bf64d8c028347a35597ad7 /wlantest | |
parent | 9559a7f882b26d822e263b078e426a5854d52a3a (diff) | |
download | external_wpa_supplicant_8_ti-5acf56f6a2b6dd549c626f77c63db47cffa3c860.zip external_wpa_supplicant_8_ti-5acf56f6a2b6dd549c626f77c63db47cffa3c860.tar.gz external_wpa_supplicant_8_ti-5acf56f6a2b6dd549c626f77c63db47cffa3c860.tar.bz2 |
wlantest: Count TDLS Teardown messages
Diffstat (limited to 'wlantest')
-rw-r--r-- | wlantest/rx_tdls.c | 1 | ||||
-rw-r--r-- | wlantest/wlantest_cli.c | 1 | ||||
-rw-r--r-- | wlantest/wlantest_ctrl.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/wlantest/rx_tdls.c b/wlantest/rx_tdls.c index af41634..90f6a13 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 05e0121..3194677 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 9bcee2b..a91b6cd 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 }; |