diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 4e492c154f88..0921e454185b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -663,7 +663,8 @@ static int iwl4965_alive_notify(struct iwl_priv *priv) | |||
663 | iwl_write_targ_mem(priv, a, 0); | 663 | iwl_write_targ_mem(priv, a, 0); |
664 | for (; a < priv->scd_base_addr + IWL49_SCD_TRANSLATE_TBL_OFFSET; a += 4) | 664 | for (; a < priv->scd_base_addr + IWL49_SCD_TRANSLATE_TBL_OFFSET; a += 4) |
665 | iwl_write_targ_mem(priv, a, 0); | 665 | iwl_write_targ_mem(priv, a, 0); |
666 | for (; a < sizeof(u16) * priv->hw_params.max_txq_num; a += 4) | 666 | for (; a < priv->scd_base_addr + |
667 | IWL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(priv->hw_params.max_txq_num); a += 4) | ||
667 | iwl_write_targ_mem(priv, a, 0); | 668 | iwl_write_targ_mem(priv, a, 0); |
668 | 669 | ||
669 | /* Tel 4965 where to find Tx byte count tables */ | 670 | /* Tel 4965 where to find Tx byte count tables */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 660fd51d190b..01d53ebb96ad 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -748,7 +748,8 @@ int iwl5000_alive_notify(struct iwl_priv *priv) | |||
748 | for (; a < priv->scd_base_addr + IWL50_SCD_TRANSLATE_TBL_OFFSET; | 748 | for (; a < priv->scd_base_addr + IWL50_SCD_TRANSLATE_TBL_OFFSET; |
749 | a += 4) | 749 | a += 4) |
750 | iwl_write_targ_mem(priv, a, 0); | 750 | iwl_write_targ_mem(priv, a, 0); |
751 | for (; a < sizeof(u16) * priv->hw_params.max_txq_num; a += 4) | 751 | for (; a < priv->scd_base_addr + |
752 | IWL50_SCD_TRANSLATE_TBL_OFFSET_QUEUE(priv->hw_params.max_txq_num); a += 4) | ||
752 | iwl_write_targ_mem(priv, a, 0); | 753 | iwl_write_targ_mem(priv, a, 0); |
753 | 754 | ||
754 | iwl_write_prph(priv, IWL50_SCD_DRAM_BASE_ADDR, | 755 | iwl_write_prph(priv, IWL50_SCD_DRAM_BASE_ADDR, |