wlantest: Count TDLS Teardown messages

This commit is contained in:
Jouni Malinen 2011-01-24 17:00:28 +02:00 committed by Jouni Malinen
parent 9559a7f882
commit 5acf56f6a2
3 changed files with 3 additions and 0 deletions

View file

@ -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); tdls = get_tdls(wt, elems.link_id, 1, bssid);
if (tdls) { if (tdls) {
tdls->link_up = 0; tdls->link_up = 0;
tdls->counters[WLANTEST_TDLS_COUNTER_TEARDOWN]++;
tdls_verify_mic_teardown(tdls, 4, data, &elems); tdls_verify_mic_teardown(tdls, 4, data, &elems);
} }
} }

View file

@ -757,6 +757,7 @@ static const struct tdls_counters tdls_counters[] = {
{ "setup_resp_fail", WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL }, { "setup_resp_fail", WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL },
{ "setup_conf_ok", WLANTEST_TDLS_COUNTER_SETUP_CONF_OK }, { "setup_conf_ok", WLANTEST_TDLS_COUNTER_SETUP_CONF_OK },
{ "setup_conf_fail", WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL }, { "setup_conf_fail", WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL },
{ "teardown", WLANTEST_TDLS_COUNTER_TEARDOWN },
{ NULL, 0 } { NULL, 0 }
}; };

View file

@ -119,6 +119,7 @@ enum wlantest_tdls_counter {
WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL, WLANTEST_TDLS_COUNTER_SETUP_RESP_FAIL,
WLANTEST_TDLS_COUNTER_SETUP_CONF_OK, WLANTEST_TDLS_COUNTER_SETUP_CONF_OK,
WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL, WLANTEST_TDLS_COUNTER_SETUP_CONF_FAIL,
WLANTEST_TDLS_COUNTER_TEARDOWN,
NUM_WLANTEST_TDLS_COUNTER NUM_WLANTEST_TDLS_COUNTER
}; };