aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-04-02 09:15:58 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2012-04-23 17:23:17 -0400
commitc98c8d9976d77328c9fee64be60f533b5cee0aa3 (patch)
tree4c42fc92b53e287ebbcd36ce2cf82da1ecc0b2f2 /drivers/net/wireless/iwlwifi/iwl-debugfs.c
parentccc369a6b6188724c7ac4a7551efa19d4782af68 (diff)
iwlwifi: move iwl_cmd_echo_test
The function can be static with the only user. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 11ca48ea6b8f..f4a9910b5e75 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -2383,6 +2383,23 @@ static ssize_t iwl_dbgfs_protection_mode_write(struct file *file,
2383 return count; 2383 return count;
2384} 2384}
2385 2385
2386static int iwl_cmd_echo_test(struct iwl_priv *priv)
2387{
2388 int ret;
2389 struct iwl_host_cmd cmd = {
2390 .id = REPLY_ECHO,
2391 .len = { 0 },
2392 .flags = CMD_SYNC,
2393 };
2394
2395 ret = iwl_dvm_send_cmd(priv, &cmd);
2396 if (ret)
2397 IWL_ERR(priv, "echo testing fail: 0X%x\n", ret);
2398 else
2399 IWL_DEBUG_INFO(priv, "echo testing pass\n");
2400 return ret;
2401}
2402
2386static ssize_t iwl_dbgfs_echo_test_write(struct file *file, 2403static ssize_t iwl_dbgfs_echo_test_write(struct file *file,
2387 const char __user *user_buf, 2404 const char __user *user_buf,
2388 size_t count, loff_t *ppos) 2405 size_t count, loff_t *ppos)