aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest_ctrl.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-18 22:35:13 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-18 22:35:13 (GMT)
commit7d23e971f0dca599ee9e1195072c200bb180e3e6 (patch)
tree084e4c0f655ea892bf614dc18527edbf14a05729 /wlantest/wlantest_ctrl.h
parent6d5ce9fc90df8c7f27a80348e7362f930d28f987 (diff)
downloadhostap-7d23e971f0dca599ee9e1195072c200bb180e3e6.zip
hostap-7d23e971f0dca599ee9e1195072c200bb180e3e6.tar.gz
hostap-7d23e971f0dca599ee9e1195072c200bb180e3e6.tar.bz2
wlantest: Add preliminary infrastructure for injecting frames
This adds new commands for wlantest_cli to request wlantest to inject frames. This version can only send out Authentication frames and unprotected SA Query Request frames, but there is now place to add more frames and encryption with future commits.
Diffstat (limited to 'wlantest/wlantest_ctrl.h')
-rw-r--r--wlantest/wlantest_ctrl.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/wlantest/wlantest_ctrl.h b/wlantest/wlantest_ctrl.h
index 6a9c99a..c5ded1e 100644
--- a/wlantest/wlantest_ctrl.h
+++ b/wlantest/wlantest_ctrl.h
@@ -33,6 +33,7 @@ enum wlantest_ctrl_cmd {
WLANTEST_CTRL_CLEAR_BSS_COUNTERS,
WLANTEST_CTRL_GET_STA_COUNTER,
WLANTEST_CTRL_GET_BSS_COUNTER,
+ WLANTEST_CTRL_INJECT,
};
enum wlantest_ctrl_attr {
@@ -41,6 +42,9 @@ enum wlantest_ctrl_attr {
WLANTEST_ATTR_STA_COUNTER,
WLANTEST_ATTR_BSS_COUNTER,
WLANTEST_ATTR_COUNTER,
+ WLANTEST_ATTR_INJECT_FRAME,
+ WLANTEST_ATTR_INJECT_SENDER_AP,
+ WLANTEST_ATTR_INJECT_PROTECTION,
};
enum wlantest_bss_counter {
@@ -75,4 +79,27 @@ enum wlantest_sta_counter {
NUM_WLANTEST_STA_COUNTER
};
+enum wlantest_inject_frame {
+ WLANTEST_FRAME_AUTH,
+ WLANTEST_FRAME_ASSOCREQ,
+ WLANTEST_FRAME_REASSOCREQ,
+ WLANTEST_FRAME_DEAUTH,
+ WLANTEST_FRAME_DISASSOC,
+ WLANTEST_FRAME_SAQUERYREQ,
+};
+
+/**
+ * enum wlantest_inject_protection - WLANTEST_CTRL_INJECT protection
+ * @WLANTEST_INJECT_NORMAL: Use normal rules (protect if key is set)
+ * @WLANTEST_INJECT_PROTECTED: Force protection (fail if not possible)
+ * @WLANTEST_INJECT_UNPROTECTED: Force unprotected
+ * @WLANTEST_INJECT_INCORRECT_KEY: Force protection with incorrect key
+ */
+enum wlantest_inject_protection {
+ WLANTEST_INJECT_NORMAL,
+ WLANTEST_INJECT_PROTECTED,
+ WLANTEST_INJECT_UNPROTECTED,
+ WLANTEST_INJECT_INCORRECT_KEY,
+};
+
#endif /* WLANTEST_CTRL_H */