aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>2012-03-15 16:26:57 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-09 16:37:31 -0400
commita42506eb27aa4b8cbe3253b4d436c2f0a57e56e8 (patch)
tree9aa380359e20b4704bedf1266ac9aeb7ec217abe /drivers/net/wireless/iwlwifi/iwl-agn.c
parent2fdfc476cf3bcf561448e290e00094de4ef4af5d (diff)
iwlwifi: move ucode_type from shared to op_mode
This variable holds the ucode currently running on the device; which is determined by op_mode, so move this parameter there. Also, the name of the variable is a bit misleading, so rename it to cur_ucode. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index ce41437f0ce0..347613049141 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1632,7 +1632,7 @@ static void iwl_dump_nic_error_log(struct iwl_priv *priv)
1632 struct iwl_error_event_table table; 1632 struct iwl_error_event_table table;
1633 1633
1634 base = priv->device_pointers.error_event_table; 1634 base = priv->device_pointers.error_event_table;
1635 if (priv->shrd->ucode_type == IWL_UCODE_INIT) { 1635 if (priv->cur_ucode == IWL_UCODE_INIT) {
1636 if (!base) 1636 if (!base)
1637 base = priv->shrd->fw->init_errlog_ptr; 1637 base = priv->shrd->fw->init_errlog_ptr;
1638 } else { 1638 } else {
@@ -1644,7 +1644,7 @@ static void iwl_dump_nic_error_log(struct iwl_priv *priv)
1644 IWL_ERR(priv, 1644 IWL_ERR(priv,
1645 "Not valid error log pointer 0x%08X for %s uCode\n", 1645 "Not valid error log pointer 0x%08X for %s uCode\n",
1646 base, 1646 base,
1647 (priv->shrd->ucode_type == IWL_UCODE_INIT) 1647 (priv->cur_ucode == IWL_UCODE_INIT)
1648 ? "Init" : "RT"); 1648 ? "Init" : "RT");
1649 return; 1649 return;
1650 } 1650 }
@@ -1723,7 +1723,7 @@ static int iwl_print_event_log(struct iwl_priv *priv, u32 start_idx,
1723 return pos; 1723 return pos;
1724 1724
1725 base = priv->device_pointers.log_event_table; 1725 base = priv->device_pointers.log_event_table;
1726 if (priv->shrd->ucode_type == IWL_UCODE_INIT) { 1726 if (priv->cur_ucode == IWL_UCODE_INIT) {
1727 if (!base) 1727 if (!base)
1728 base = priv->shrd->fw->init_evtlog_ptr; 1728 base = priv->shrd->fw->init_evtlog_ptr;
1729 } else { 1729 } else {
@@ -1838,7 +1838,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
1838 struct iwl_trans *trans = trans(priv); 1838 struct iwl_trans *trans = trans(priv);
1839 1839
1840 base = priv->device_pointers.log_event_table; 1840 base = priv->device_pointers.log_event_table;
1841 if (priv->shrd->ucode_type == IWL_UCODE_INIT) { 1841 if (priv->cur_ucode == IWL_UCODE_INIT) {
1842 logsize = priv->shrd->fw->init_evtlog_size; 1842 logsize = priv->shrd->fw->init_evtlog_size;
1843 if (!base) 1843 if (!base)
1844 base = priv->shrd->fw->init_evtlog_ptr; 1844 base = priv->shrd->fw->init_evtlog_ptr;
@@ -1852,7 +1852,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
1852 IWL_ERR(priv, 1852 IWL_ERR(priv,
1853 "Invalid event log pointer 0x%08X for %s uCode\n", 1853 "Invalid event log pointer 0x%08X for %s uCode\n",
1854 base, 1854 base,
1855 (priv->shrd->ucode_type == IWL_UCODE_INIT) 1855 (priv->cur_ucode == IWL_UCODE_INIT)
1856 ? "Init" : "RT"); 1856 ? "Init" : "RT");
1857 return -EINVAL; 1857 return -EINVAL;
1858 } 1858 }