iwlwifi: print warning when sending host command fails
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 30 Oct 2009 21:36:15 +0000 (14:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Nov 2009 20:39:47 +0000 (15:39 -0500)
More information than the "-EIO" return code will be useful here.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-tx.c

index b46967ff3806145ab58de0ddecba92849b1ab6ec..05e75109d842e33c725fcf35e7f443937c263f1f 100644 (file)
@@ -979,7 +979,8 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
               !(cmd->flags & CMD_SIZE_HUGE));
 
        if (iwl_is_rfkill(priv) || iwl_is_ctkill(priv)) {
-               IWL_DEBUG_INFO(priv, "Not sending command - RF/CT KILL\n");
+               IWL_WARN(priv, "Not sending command - %s KILL\n",
+                        iwl_is_rfkill(priv) ? "RF" : "CT");
                return -EIO;
        }