Browse Source

wlantest: Count TDLS Teardown messages

Jouni Malinen 14 years ago
parent
commit
5acf56f6a2
3 changed files with 3 additions and 0 deletions
  1. 1 0
      wlantest/rx_tdls.c
  2. 1 0
      wlantest/wlantest_cli.c
  3. 1 0
      wlantest/wlantest_ctrl.h

+ 1 - 0
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);
 	}
 }

+ 1 - 0
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 }
 };
 

+ 1 - 0
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
 };