aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest_ctrl.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-13 16:38:19 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-13 16:38:19 (GMT)
commit644fb8c8a0c62d9292cddeae92ff5802b2054fe5 (patch)
treeee9227e77439442ae60bb21e61a9e318b79a10a6 /wlantest/wlantest_ctrl.h
parent77ac47278a341edf65a128150c878ceb9353eefe (diff)
downloadhostap-644fb8c8a0c62d9292cddeae92ff5802b2054fe5.zip
hostap-644fb8c8a0c62d9292cddeae92ff5802b2054fe5.tar.gz
hostap-644fb8c8a0c62d9292cddeae92ff5802b2054fe5.tar.bz2
wlantest: Add control interface and wlantest_cli
This can be used to manage wlantest operation during run time.
Diffstat (limited to 'wlantest/wlantest_ctrl.h')
-rw-r--r--wlantest/wlantest_ctrl.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/wlantest/wlantest_ctrl.h b/wlantest/wlantest_ctrl.h
new file mode 100644
index 0000000..d34bc88
--- /dev/null
+++ b/wlantest/wlantest_ctrl.h
@@ -0,0 +1,30 @@
+/*
+ * 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,
+ WLANTEST_CTRL_UNKNOWN_CMD,
+ WLANTEST_CTRL_PING,
+ WLANTEST_CTRL_TERMINATE,
+};
+
+#endif /* WLANTEST_CTRL_H */