aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:11:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:30:31 -0400
commitfd656935cd05f522d7db97386633f6a0d7751218 (patch)
treec4633b2033c45e85f759789602116c84757f0dd5 /drivers/net/wireless/iwlwifi/iwl-agn.c
parent5f85a7890cbfd2be8f4c6620b2a6774d6b5ac647 (diff)
iwlagn: remove dereferences of priv from transport
There are still quite a few, but much less. A few fields have been moved /copied to hw_params which sits in the shared area: * priv->cfg->base_params->num_of_ampdu_queues * priv->cfg->base_params->shadow_reg_enable * priv->cfg->sku * priv->ucode_owner Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 1cf36783c1c3..65a6db5e9a2d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3207,6 +3207,13 @@ static int iwl_set_hw_params(struct iwl_priv *priv)
3207 if (iwlagn_mod_params.disable_11n) 3207 if (iwlagn_mod_params.disable_11n)
3208 priv->cfg->sku &= ~EEPROM_SKU_CAP_11N_ENABLE; 3208 priv->cfg->sku &= ~EEPROM_SKU_CAP_11N_ENABLE;
3209 3209
3210 hw_params(priv).num_ampdu_queues =
3211 priv->cfg->base_params->num_of_ampdu_queues;
3212 hw_params(priv).shadow_reg_enable =
3213 priv->cfg->base_params->shadow_reg_enable;
3214 hw_params(priv).sku =
3215 priv->cfg->sku;
3216
3210 /* Device-specific setup */ 3217 /* Device-specific setup */
3211 return priv->cfg->lib->set_hw_params(priv); 3218 return priv->cfg->lib->set_hw_params(priv);
3212} 3219}