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 };