diff options
author | Shanyu Zhao <shanyu.zhao@intel.com> | 2010-04-28 01:05:15 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 18:08:51 -0400 |
commit | 459bc732abad5e461da9a06d82dfc0cb1119ef5a (patch) | |
tree | 532ee07df11f9e0f03f7400f23520d084f0652cb /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 3d38f1731e3a8217e228fde0a4bfece865bc7901 (diff) |
iwlwifi: dump firmware build info in error case
Dump the firmware version and build number in case of firmware SW
error. This would help firmware engineer analyze the error log.
Requested-by: Jay Sternberg <jay.e.sternberg@intel.com>
Signed-off-by: Shanyu Zhao <shanyu.zhao@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 0c3b9846aa52..d609414844db 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1068,6 +1068,9 @@ void iwl_irq_handle_error(struct iwl_priv *priv) | |||
1068 | /* Cancel currently queued command. */ | 1068 | /* Cancel currently queued command. */ |
1069 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 1069 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
1070 | 1070 | ||
1071 | IWL_ERR(priv, "Loaded firmware version: %s\n", | ||
1072 | priv->hw->wiphy->fw_version); | ||
1073 | |||
1071 | priv->cfg->ops->lib->dump_nic_error_log(priv); | 1074 | priv->cfg->ops->lib->dump_nic_error_log(priv); |
1072 | if (priv->cfg->ops->lib->dump_csr) | 1075 | if (priv->cfg->ops->lib->dump_csr) |
1073 | priv->cfg->ops->lib->dump_csr(priv); | 1076 | priv->cfg->ops->lib->dump_csr(priv); |