diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-01-28 10:47:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-31 15:06:21 -0500 |
commit | d828cd5a95e532636dbc495e4b94b625ab9abdad (patch) | |
tree | 8ccaf1a5aa85eee503269dfbbc4eb020cf3ff0a5 /drivers/net/wireless | |
parent | 3e11210d46a4f252f41db6e442b46026aeddbb59 (diff) |
iwl3945: do not use agn specific IWL_RATE_COUNT
Only use IWL_RATE_COUNT_3945 in 3945 code.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 294221b06813..58213e72d107 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -762,8 +762,7 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, | |||
762 | 762 | ||
763 | /* We need to figure out how to get the sta->supp_rates while | 763 | /* We need to figure out how to get the sta->supp_rates while |
764 | * in this running context */ | 764 | * in this running context */ |
765 | rate_mask = IWL_RATES_MASK; | 765 | rate_mask = IWL_RATES_MASK_3945; |
766 | |||
767 | 766 | ||
768 | /* Set retry limit on DATA packets and Probe Responses*/ | 767 | /* Set retry limit on DATA packets and Probe Responses*/ |
769 | if (ieee80211_is_probe_resp(fc)) | 768 | if (ieee80211_is_probe_resp(fc)) |
@@ -1650,7 +1649,7 @@ static int iwl3945_hw_reg_comp_txpower_temp(struct iwl_priv *priv) | |||
1650 | ref_temp); | 1649 | ref_temp); |
1651 | 1650 | ||
1652 | /* set tx power value for all rates, OFDM and CCK */ | 1651 | /* set tx power value for all rates, OFDM and CCK */ |
1653 | for (rate_index = 0; rate_index < IWL_RATE_COUNT; | 1652 | for (rate_index = 0; rate_index < IWL_RATE_COUNT_3945; |
1654 | rate_index++) { | 1653 | rate_index++) { |
1655 | int power_idx = | 1654 | int power_idx = |
1656 | ch_info->power_info[rate_index].base_power_index; | 1655 | ch_info->power_info[rate_index].base_power_index; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h index 75e50d33ecb3..184828c72b31 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h | |||
@@ -213,6 +213,7 @@ enum { | |||
213 | IWL_CCK_BASIC_RATES_MASK) | 213 | IWL_CCK_BASIC_RATES_MASK) |
214 | 214 | ||
215 | #define IWL_RATES_MASK ((1 << IWL_RATE_COUNT) - 1) | 215 | #define IWL_RATES_MASK ((1 << IWL_RATE_COUNT) - 1) |
216 | #define IWL_RATES_MASK_3945 ((1 << IWL_RATE_COUNT_3945) - 1) | ||
216 | 217 | ||
217 | #define IWL_INVALID_VALUE -1 | 218 | #define IWL_INVALID_VALUE -1 |
218 | 219 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 55837d607534..2945acd955f0 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -2517,7 +2517,7 @@ static void iwl3945_alive_start(struct iwl_priv *priv) | |||
2517 | 2517 | ||
2518 | ieee80211_wake_queues(priv->hw); | 2518 | ieee80211_wake_queues(priv->hw); |
2519 | 2519 | ||
2520 | priv->active_rate = IWL_RATES_MASK; | 2520 | priv->active_rate = IWL_RATES_MASK_3945; |
2521 | 2521 | ||
2522 | iwl_power_update_mode(priv, true); | 2522 | iwl_power_update_mode(priv, true); |
2523 | 2523 | ||