aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:11:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:30:27 -0400
commit16db88ba51d669ef63c58990771a47208913152c (patch)
tree9382f559cc8a20bdfaf84be0d47395c82e85d560 /drivers/net/wireless/iwlwifi/iwl-debugfs.c
parent72012474b01e2f2d433e4253505f5dcfb3345d17 (diff)
iwlagn: move dump_csr and dump_fh to transport layer
These are transport layer related. Move also the corresponding debugfs handlers. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 9ca429c23ad1..a12b8d47ccbc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1991,27 +1991,6 @@ static ssize_t iwl_dbgfs_clear_ucode_statistics_write(struct file *file,
1991 return count; 1991 return count;
1992} 1992}
1993 1993
1994static ssize_t iwl_dbgfs_csr_write(struct file *file,
1995 const char __user *user_buf,
1996 size_t count, loff_t *ppos)
1997{
1998 struct iwl_priv *priv = file->private_data;
1999 char buf[8];
2000 int buf_size;
2001 int csr;
2002
2003 memset(buf, 0, sizeof(buf));
2004 buf_size = min(count, sizeof(buf) - 1);
2005 if (copy_from_user(buf, user_buf, buf_size))
2006 return -EFAULT;
2007 if (sscanf(buf, "%d", &csr) != 1)
2008 return -EFAULT;
2009
2010 iwl_dump_csr(priv);
2011
2012 return count;
2013}
2014
2015static ssize_t iwl_dbgfs_ucode_tracing_read(struct file *file, 1994static ssize_t iwl_dbgfs_ucode_tracing_read(struct file *file,
2016 char __user *user_buf, 1995 char __user *user_buf,
2017 size_t count, loff_t *ppos) { 1996 size_t count, loff_t *ppos) {
@@ -2088,25 +2067,6 @@ static ssize_t iwl_dbgfs_rxon_filter_flags_read(struct file *file,
2088 return simple_read_from_buffer(user_buf, count, ppos, buf, len); 2067 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
2089} 2068}
2090 2069
2091static ssize_t iwl_dbgfs_fh_reg_read(struct file *file,
2092 char __user *user_buf,
2093 size_t count, loff_t *ppos)
2094{
2095 struct iwl_priv *priv = file->private_data;
2096 char *buf;
2097 int pos = 0;
2098 ssize_t ret = -EFAULT;
2099
2100 ret = pos = iwl_dump_fh(priv, &buf, true);
2101 if (buf) {
2102 ret = simple_read_from_buffer(user_buf,
2103 count, ppos, buf, pos);
2104 kfree(buf);
2105 }
2106
2107 return ret;
2108}
2109
2110static ssize_t iwl_dbgfs_missed_beacon_read(struct file *file, 2070static ssize_t iwl_dbgfs_missed_beacon_read(struct file *file,
2111 char __user *user_buf, 2071 char __user *user_buf,
2112 size_t count, loff_t *ppos) { 2072 size_t count, loff_t *ppos) {
@@ -2391,9 +2351,7 @@ DEBUGFS_READ_FILE_OPS(chain_noise);
2391DEBUGFS_READ_FILE_OPS(power_save_status); 2351DEBUGFS_READ_FILE_OPS(power_save_status);
2392DEBUGFS_WRITE_FILE_OPS(clear_ucode_statistics); 2352DEBUGFS_WRITE_FILE_OPS(clear_ucode_statistics);
2393DEBUGFS_WRITE_FILE_OPS(clear_traffic_statistics); 2353DEBUGFS_WRITE_FILE_OPS(clear_traffic_statistics);
2394DEBUGFS_WRITE_FILE_OPS(csr);
2395DEBUGFS_READ_WRITE_FILE_OPS(ucode_tracing); 2354DEBUGFS_READ_WRITE_FILE_OPS(ucode_tracing);
2396DEBUGFS_READ_FILE_OPS(fh_reg);
2397DEBUGFS_READ_WRITE_FILE_OPS(missed_beacon); 2355DEBUGFS_READ_WRITE_FILE_OPS(missed_beacon);
2398DEBUGFS_READ_WRITE_FILE_OPS(plcp_delta); 2356DEBUGFS_READ_WRITE_FILE_OPS(plcp_delta);
2399DEBUGFS_READ_WRITE_FILE_OPS(force_reset); 2357DEBUGFS_READ_WRITE_FILE_OPS(force_reset);
@@ -2448,8 +2406,6 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
2448 DEBUGFS_ADD_FILE(power_save_status, dir_debug, S_IRUSR); 2406 DEBUGFS_ADD_FILE(power_save_status, dir_debug, S_IRUSR);
2449 DEBUGFS_ADD_FILE(clear_ucode_statistics, dir_debug, S_IWUSR); 2407 DEBUGFS_ADD_FILE(clear_ucode_statistics, dir_debug, S_IWUSR);
2450 DEBUGFS_ADD_FILE(clear_traffic_statistics, dir_debug, S_IWUSR); 2408 DEBUGFS_ADD_FILE(clear_traffic_statistics, dir_debug, S_IWUSR);
2451 DEBUGFS_ADD_FILE(csr, dir_debug, S_IWUSR);
2452 DEBUGFS_ADD_FILE(fh_reg, dir_debug, S_IRUSR);
2453 DEBUGFS_ADD_FILE(missed_beacon, dir_debug, S_IWUSR); 2409 DEBUGFS_ADD_FILE(missed_beacon, dir_debug, S_IWUSR);
2454 DEBUGFS_ADD_FILE(plcp_delta, dir_debug, S_IWUSR | S_IRUSR); 2410 DEBUGFS_ADD_FILE(plcp_delta, dir_debug, S_IWUSR | S_IRUSR);
2455 DEBUGFS_ADD_FILE(force_reset, dir_debug, S_IWUSR | S_IRUSR); 2411 DEBUGFS_ADD_FILE(force_reset, dir_debug, S_IWUSR | S_IRUSR);