Commit f2f21b49 authored by Reinette Chatre's avatar Reinette Chatre Committed by John W. Linville
Browse files

iwlwifi: print warning when sending host command fails



More information than the "-EIO" return code will be useful here.

Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5ad13f8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}