summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/iwl-testmode.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-05-31 08:03:02 -0700
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-06-11 07:08:23 -0700
commiteb64dca0c9d73e191026ed37d1075f22e48b3f1c (patch)
treec46df5b1e4cf7b7d8822c444def4348d2f278456 /drivers/net/wireless/iwlwifi/iwl-testmode.h
parent49b72100165e3b2046be15a8e4f766f5169e708d (diff)
downloadlwn-eb64dca0c9d73e191026ed37d1075f22e48b3f1c.tar.gz
lwn-eb64dca0c9d73e191026ed37d1075f22e48b3f1c.zip
iwlagn: add dumpit support for testmode trace function
For testmode trace function, huge amout of data need to pass to userspace. Use the build-in nl80211 dumpt it function Require nl80211 testmode dumpit support patch. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-testmode.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-testmode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.h b/drivers/net/wireless/iwlwifi/iwl-testmode.h
index f3f406e1766e..160911a3716a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-testmode.h
+++ b/drivers/net/wireless/iwlwifi/iwl-testmode.h
@@ -166,8 +166,8 @@ enum iwl_tm_attr_t {
* IWL_TM_ATTR_MEM_TRACE_ADDR for the trace address
*/
IWL_TM_ATTR_TRACE_ADDR,
- IWL_TM_ATTR_TRACE_DATA,
IWL_TM_ATTR_TRACE_SIZE,
+ IWL_TM_ATTR_TRACE_DUMP,
/* When IWL_TM_ATTR_COMMAND is IWL_TM_CMD_APP2DEV_FIXRATE_REQ,
* The mandatory fields are:
@@ -182,7 +182,7 @@ enum iwl_tm_attr_t {
#define TRACE_BUFF_SIZE_MAX 0x200000
#define TRACE_BUFF_SIZE_MIN 0x20000
#define TRACE_BUFF_SIZE_DEF TRACE_BUFF_SIZE_MIN
-
#define TRACE_BUFF_PADD 0x2000
+#define TRACE_CHUNK_SIZE (PAGE_SIZE - 1024)
#endif