aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-tx.c
diff options
context:
space:
mode:
authorEsti Kummer <ester.kummer@intel.com>2008-08-04 04:00:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:51 -0400
commitded2ae7c1fbff22516fd55ff0edcf6cd86f76186 (patch)
tree2ac1cdb249b97830de6889db0486eb1a35045efd /drivers/net/wireless/iwlwifi/iwl-tx.c
parent39351fa343289070f6f30bd0652e10c8d97f0a3b (diff)
iwlwifi: add level for debugging host command
This patch adds another level for debugging host command. This adds an option to suppress the debug prints for sensitivity and link quality commands. Signed-off-by: Esti Kummer <ester.kummer@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c
index dac34aa8358e..addf899df174 100644
--- a/drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-tx.c
@@ -1065,12 +1065,26 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
1065 phys_addr += offsetof(struct iwl_cmd, hdr); 1065 phys_addr += offsetof(struct iwl_cmd, hdr);
1066 iwl_hw_txq_attach_buf_to_tfd(priv, tfd, phys_addr, fix_size); 1066 iwl_hw_txq_attach_buf_to_tfd(priv, tfd, phys_addr, fix_size);
1067 1067
1068 IWL_DEBUG_HC("Sending command %s (#%x), seq: 0x%04X, " 1068#ifdef CONFIG_IWLWIFI_DEBUG
1069 "%d bytes at %d[%d]:%d\n", 1069 switch (out_cmd->hdr.cmd) {
1070 get_cmd_string(out_cmd->hdr.cmd), 1070 case REPLY_TX_LINK_QUALITY_CMD:
1071 out_cmd->hdr.cmd, le16_to_cpu(out_cmd->hdr.sequence), 1071 case SENSITIVITY_CMD:
1072 fix_size, q->write_ptr, idx, IWL_CMD_QUEUE_NUM); 1072 IWL_DEBUG_HC_DUMP("Sending command %s (#%x), seq: 0x%04X, "
1073 1073 "%d bytes at %d[%d]:%d\n",
1074 get_cmd_string(out_cmd->hdr.cmd),
1075 out_cmd->hdr.cmd,
1076 le16_to_cpu(out_cmd->hdr.sequence), fix_size,
1077 q->write_ptr, idx, IWL_CMD_QUEUE_NUM);
1078 break;
1079 default:
1080 IWL_DEBUG_HC("Sending command %s (#%x), seq: 0x%04X, "
1081 "%d bytes at %d[%d]:%d\n",
1082 get_cmd_string(out_cmd->hdr.cmd),
1083 out_cmd->hdr.cmd,
1084 le16_to_cpu(out_cmd->hdr.sequence), fix_size,
1085 q->write_ptr, idx, IWL_CMD_QUEUE_NUM);
1086 }
1087#endif
1074 txq->need_update = 1; 1088 txq->need_update = 1;
1075 1089
1076 /* Set up entry in queue's byte count circular buffer */ 1090 /* Set up entry in queue's byte count circular buffer */