aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-06-02 05:56:58 -0400
committerLuca Coelho <luciano.coelho@intel.com>2017-08-01 05:41:43 -0400
commit702e975d6a60027968423a4fdaaf0831da87b73b (patch)
tree4c4c641d13053890254878f998feed92eba30bed /drivers/net/wireless/intel/iwlwifi/mvm/utils.c
parentd0b813fcdc22d091f8c9eee3a1484dca162667c8 (diff)
iwlwifi: track current firmware image in common code
Track the current firmware image in the common code instead of in the opmode so that later patches can access it there in a common way. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
index fc5a490880d0..4e80c8fa4741 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
@@ -464,8 +464,8 @@ static void iwl_mvm_dump_umac_error_log(struct iwl_mvm *mvm)
464 IWL_ERR(mvm, 464 IWL_ERR(mvm,
465 "Not valid error log pointer 0x%08X for %s uCode\n", 465 "Not valid error log pointer 0x%08X for %s uCode\n",
466 base, 466 base,
467 (mvm->cur_ucode == IWL_UCODE_INIT) 467 (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT)
468 ? "Init" : "RT"); 468 ? "Init" : "RT");
469 return; 469 return;
470 } 470 }
471 471
@@ -500,7 +500,7 @@ static void iwl_mvm_dump_lmac_error_log(struct iwl_mvm *mvm, u32 base)
500 struct iwl_error_event_table table; 500 struct iwl_error_event_table table;
501 u32 val; 501 u32 val;
502 502
503 if (mvm->cur_ucode == IWL_UCODE_INIT) { 503 if (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT) {
504 if (!base) 504 if (!base)
505 base = mvm->fw->init_errlog_ptr; 505 base = mvm->fw->init_errlog_ptr;
506 } else { 506 } else {
@@ -512,8 +512,8 @@ static void iwl_mvm_dump_lmac_error_log(struct iwl_mvm *mvm, u32 base)
512 IWL_ERR(mvm, 512 IWL_ERR(mvm,
513 "Not valid error log pointer 0x%08X for %s uCode\n", 513 "Not valid error log pointer 0x%08X for %s uCode\n",
514 base, 514 base,
515 (mvm->cur_ucode == IWL_UCODE_INIT) 515 (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT)
516 ? "Init" : "RT"); 516 ? "Init" : "RT");
517 return; 517 return;
518 } 518 }
519 519