Fix spelling mistakes in number of comments
[mech_eap.git] / wlantest / wlantest_ctrl.h
index eeaa5f9..1af6838 100644 (file)
@@ -1,15 +1,9 @@
 /*
  * wlantest control interface
- * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2010-2013, Jouni Malinen <j@w1.fi>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #ifndef WLANTEST_CTRL_H
@@ -38,6 +32,12 @@ enum wlantest_ctrl_cmd {
        WLANTEST_CTRL_ADD_PASSPHRASE,
        WLANTEST_CTRL_INFO_STA,
        WLANTEST_CTRL_INFO_BSS,
+       WLANTEST_CTRL_SEND,
+       WLANTEST_CTRL_CLEAR_TDLS_COUNTERS,
+       WLANTEST_CTRL_GET_TDLS_COUNTER,
+       WLANTEST_CTRL_RELOG,
+       WLANTEST_CTRL_GET_TX_TID,
+       WLANTEST_CTRL_GET_RX_TID,
 };
 
 enum wlantest_ctrl_attr {
@@ -54,12 +54,20 @@ enum wlantest_ctrl_attr {
        WLANTEST_ATTR_STA_INFO,
        WLANTEST_ATTR_BSS_INFO,
        WLANTEST_ATTR_INFO,
+       WLANTEST_ATTR_FRAME,
+       WLANTEST_ATTR_TDLS_COUNTER,
+       WLANTEST_ATTR_STA2_ADDR,
+       WLANTEST_ATTR_WEPKEY,
+       WLANTEST_ATTR_TID,
 };
 
 enum wlantest_bss_counter {
        WLANTEST_BSS_COUNTER_VALID_BIP_MMIE,
        WLANTEST_BSS_COUNTER_INVALID_BIP_MMIE,
        WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE,
+       WLANTEST_BSS_COUNTER_BIP_DEAUTH,
+       WLANTEST_BSS_COUNTER_BIP_DISASSOC,
+       WLANTEST_BSS_COUNTER_PROBE_RESPONSE,
        NUM_WLANTEST_BSS_COUNTER
 };
 
@@ -88,9 +96,37 @@ enum wlantest_sta_counter {
        WLANTEST_STA_COUNTER_PING_OK,
        WLANTEST_STA_COUNTER_ASSOCRESP_COMEBACK,
        WLANTEST_STA_COUNTER_REASSOCRESP_COMEBACK,
+       WLANTEST_STA_COUNTER_PING_OK_FIRST_ASSOC,
+       WLANTEST_STA_COUNTER_VALID_DEAUTH_RX_ACK,
+       WLANTEST_STA_COUNTER_VALID_DISASSOC_RX_ACK,
+       WLANTEST_STA_COUNTER_INVALID_DEAUTH_RX_ACK,
+       WLANTEST_STA_COUNTER_INVALID_DISASSOC_RX_ACK,
+       WLANTEST_STA_COUNTER_DEAUTH_RX_ASLEEP,
+       WLANTEST_STA_COUNTER_DEAUTH_RX_AWAKE,
+       WLANTEST_STA_COUNTER_DISASSOC_RX_ASLEEP,
+       WLANTEST_STA_COUNTER_DISASSOC_RX_AWAKE,
+       WLANTEST_STA_COUNTER_PROT_DATA_TX,
+       WLANTEST_STA_COUNTER_DEAUTH_RX_RC6,
+       WLANTEST_STA_COUNTER_DEAUTH_RX_RC7,
+       WLANTEST_STA_COUNTER_DISASSOC_RX_RC6,
+       WLANTEST_STA_COUNTER_DISASSOC_RX_RC7,
        NUM_WLANTEST_STA_COUNTER
 };
 
+enum wlantest_tdls_counter {
+       WLANTEST_TDLS_COUNTER_VALID_DIRECT_LINK,
+       WLANTEST_TDLS_COUNTER_INVALID_DIRECT_LINK,
+       WLANTEST_TDLS_COUNTER_VALID_AP_PATH,
+       WLANTEST_TDLS_COUNTER_INVALID_AP_PATH,
+       WLANTEST_TDLS_COUNTER_SETUP_REQ,
+       WLANTEST_TDLS_COUNTER_SETUP_RESP_OK,
+       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
+};
+
 enum wlantest_inject_frame {
        WLANTEST_FRAME_AUTH,
        WLANTEST_FRAME_ASSOCREQ,
@@ -120,6 +156,7 @@ enum wlantest_sta_info {
        WLANTEST_STA_INFO_KEY_MGMT,
        WLANTEST_STA_INFO_RSN_CAPAB,
        WLANTEST_STA_INFO_STATE,
+       WLANTEST_STA_INFO_GTK,
 };
 
 enum wlantest_bss_info {