diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-06-30 05:23:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-30 17:37:43 -0400 |
commit | da154e306eb04426a3693c947588d82c3da05337 (patch) | |
tree | 288febbea32c102ce53dce375136bc2fc8c4c141 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 3bff19c203d216436a73e56b8298bebd5ea75a3f (diff) |
iwlwifi: unite common settings of HW params
This patch unites common settings of 4965 and 5000 hw params.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 104b6f7c81ed..75283fb9d5a8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -827,19 +827,11 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
827 | 827 | ||
828 | priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues; | 828 | priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues; |
829 | priv->hw_params.first_ampdu_q = IWL50_FIRST_AMPDU_QUEUE; | 829 | priv->hw_params.first_ampdu_q = IWL50_FIRST_AMPDU_QUEUE; |
830 | priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto; | ||
831 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; | ||
832 | priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; | ||
833 | if (priv->cfg->mod_params->amsdu_size_8K) | ||
834 | priv->hw_params.rx_buf_size = IWL_RX_BUF_SIZE_8K; | ||
835 | else | ||
836 | priv->hw_params.rx_buf_size = IWL_RX_BUF_SIZE_4K; | ||
837 | priv->hw_params.max_pkt_size = priv->hw_params.rx_buf_size - 256; | ||
838 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; | 830 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
839 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; | 831 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
840 | priv->hw_params.max_data_size = IWL50_RTC_DATA_SIZE; | 832 | priv->hw_params.max_data_size = IWL50_RTC_DATA_SIZE; |
841 | priv->hw_params.max_inst_size = IWL50_RTC_INST_SIZE; | 833 | priv->hw_params.max_inst_size = IWL50_RTC_INST_SIZE; |
842 | priv->hw_params.max_bsm_size = BSM_SRAM_SIZE; | 834 | priv->hw_params.max_bsm_size = 0; |
843 | priv->hw_params.fat_channel = BIT(IEEE80211_BAND_2GHZ) | | 835 | priv->hw_params.fat_channel = BIT(IEEE80211_BAND_2GHZ) | |
844 | BIT(IEEE80211_BAND_5GHZ); | 836 | BIT(IEEE80211_BAND_5GHZ); |
845 | priv->hw_params.sens = &iwl5000_sensitivity; | 837 | priv->hw_params.sens = &iwl5000_sensitivity; |