diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-10-10 10:26:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:09 -0400 |
commit | 7e4005cc4ae49100582ee1c97368dd79474f0a82 (patch) | |
tree | 4ad287cc0c2144f04504ecbb8e5ad379b7bfd68b /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 46e7741ea176b6bb86d9d0ae5770c2e7528dc146 (diff) |
iwlagn: add "echo test" command to debugfs
For command queue testing, add "echo test" to debugfs
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-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 9cb6c755279e..2cc6399dafa4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1734,12 +1734,18 @@ int iwl_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
1734 | 1734 | ||
1735 | int iwl_cmd_echo_test(struct iwl_priv *priv) | 1735 | int iwl_cmd_echo_test(struct iwl_priv *priv) |
1736 | { | 1736 | { |
1737 | int ret; | ||
1737 | struct iwl_host_cmd cmd = { | 1738 | struct iwl_host_cmd cmd = { |
1738 | .id = REPLY_ECHO, | 1739 | .id = REPLY_ECHO, |
1739 | .flags = CMD_SYNC, | 1740 | .flags = CMD_SYNC, |
1740 | }; | 1741 | }; |
1741 | 1742 | ||
1742 | return iwl_trans_send_cmd(trans(priv), &cmd); | 1743 | ret = iwl_trans_send_cmd(trans(priv), &cmd); |
1744 | if (ret) | ||
1745 | IWL_ERR(priv, "echo testing fail: 0X%x\n", ret); | ||
1746 | else | ||
1747 | IWL_DEBUG_INFO(priv, "echo testing pass\n"); | ||
1748 | return ret; | ||
1743 | } | 1749 | } |
1744 | 1750 | ||
1745 | static inline int iwl_check_stuck_queue(struct iwl_priv *priv, int txq) | 1751 | static inline int iwl_check_stuck_queue(struct iwl_priv *priv, int txq) |