2010-11-13 11:38:19 -05:00
|
|
|
/*
|
|
|
|
* wlantest control interface
|
|
|
|
* Copyright (c) 2010, 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WLANTEST_CTRL_H
|
|
|
|
#define WLANTEST_CTRL_H
|
|
|
|
|
|
|
|
#define WLANTEST_SOCK_NAME "w1.fi.wlantest"
|
|
|
|
#define WLANTEST_CTRL_MAX_CMD_LEN 1000
|
|
|
|
#define WLANTEST_CTRL_MAX_RESP_LEN 1000
|
|
|
|
|
|
|
|
enum wlantest_ctrl_cmd {
|
|
|
|
WLANTEST_CTRL_SUCCESS,
|
|
|
|
WLANTEST_CTRL_FAILURE,
|
2010-11-18 10:17:18 -05:00
|
|
|
WLANTEST_CTRL_INVALID_CMD,
|
2010-11-13 11:38:19 -05:00
|
|
|
WLANTEST_CTRL_UNKNOWN_CMD,
|
|
|
|
WLANTEST_CTRL_PING,
|
|
|
|
WLANTEST_CTRL_TERMINATE,
|
2010-11-18 10:17:18 -05:00
|
|
|
WLANTEST_CTRL_LIST_BSS,
|
|
|
|
WLANTEST_CTRL_LIST_STA,
|
2010-11-18 10:36:08 -05:00
|
|
|
WLANTEST_CTRL_FLUSH,
|
2010-11-18 12:05:29 -05:00
|
|
|
WLANTEST_CTRL_CLEAR_STA_COUNTERS,
|
|
|
|
WLANTEST_CTRL_CLEAR_BSS_COUNTERS,
|
|
|
|
WLANTEST_CTRL_GET_STA_COUNTER,
|
|
|
|
WLANTEST_CTRL_GET_BSS_COUNTER,
|
2010-11-18 10:17:18 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
enum wlantest_ctrl_attr {
|
|
|
|
WLANTEST_ATTR_BSSID,
|
|
|
|
WLANTEST_ATTR_STA_ADDR,
|
2010-11-18 12:05:29 -05:00
|
|
|
WLANTEST_ATTR_STA_COUNTER,
|
|
|
|
WLANTEST_ATTR_BSS_COUNTER,
|
|
|
|
WLANTEST_ATTR_COUNTER,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum wlantest_bss_counter {
|
|
|
|
WLANTEST_BSS_COUNTER_VALID_BIP_MMIE,
|
|
|
|
WLANTEST_BSS_COUNTER_INVALID_BIP_MMIE,
|
|
|
|
WLANTEST_BSS_COUNTER_MISSING_BIP_MMIE,
|
|
|
|
NUM_WLANTEST_BSS_COUNTER
|
|
|
|
};
|
|
|
|
|
|
|
|
enum wlantest_sta_counter {
|
|
|
|
WLANTEST_STA_COUNTER_AUTH_TX,
|
|
|
|
WLANTEST_STA_COUNTER_AUTH_RX,
|
|
|
|
WLANTEST_STA_COUNTER_ASSOCREQ_TX,
|
|
|
|
WLANTEST_STA_COUNTER_REASSOCREQ_TX,
|
|
|
|
WLANTEST_STA_COUNTER_PTK_LEARNED,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_DEAUTH_TX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_DEAUTH_RX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_DEAUTH_TX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_DEAUTH_RX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_DISASSOC_TX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_DISASSOC_RX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_DISASSOC_TX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_DISASSOC_RX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_SAQUERYREQ_TX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_SAQUERYREQ_RX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_SAQUERYREQ_TX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_SAQUERYREQ_RX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_SAQUERYRESP_TX,
|
|
|
|
WLANTEST_STA_COUNTER_VALID_SAQUERYRESP_RX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_SAQUERYRESP_TX,
|
|
|
|
WLANTEST_STA_COUNTER_INVALID_SAQUERYRESP_RX,
|
|
|
|
NUM_WLANTEST_STA_COUNTER
|
2010-11-13 11:38:19 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* WLANTEST_CTRL_H */
|