diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-08-26 02:10:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:25:30 -0400 |
commit | d618912417fbce4f6514fe1cbef7df2e73bdb6c2 (patch) | |
tree | e14bf2a7a09d898431cd0bac6d8b38318cb6dc48 /drivers/net/wireless/iwlwifi/iwl-2000.c | |
parent | 8f470ce31de1a9dfe6b53e0967eaa7e72b741714 (diff) |
iwlagn: hw_params moves to iwl_shared
Since it is used by all the layers, it needs to move to iwl_shared.
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-2000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index e623870c0fe7..1a36edf05ee4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -79,8 +79,8 @@ | |||
79 | static void iwl2000_set_ct_threshold(struct iwl_priv *priv) | 79 | static void iwl2000_set_ct_threshold(struct iwl_priv *priv) |
80 | { | 80 | { |
81 | /* want Celsius */ | 81 | /* want Celsius */ |
82 | priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; | 82 | hw_params(priv).ct_kill_threshold = CT_KILL_THRESHOLD; |
83 | priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; | 83 | hw_params(priv).ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; |
84 | } | 84 | } |
85 | 85 | ||
86 | /* NIC configuration for 2000 series */ | 86 | /* NIC configuration for 2000 series */ |
@@ -125,44 +125,44 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv) | |||
125 | priv->cfg->base_params->num_of_queues = | 125 | priv->cfg->base_params->num_of_queues = |
126 | iwlagn_mod_params.num_of_queues; | 126 | iwlagn_mod_params.num_of_queues; |
127 | 127 | ||
128 | priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; | 128 | hw_params(priv).max_txq_num = priv->cfg->base_params->num_of_queues; |
129 | priv->hw_params.scd_bc_tbls_size = | 129 | hw_params(priv).scd_bc_tbls_size = |
130 | priv->cfg->base_params->num_of_queues * | 130 | priv->cfg->base_params->num_of_queues * |
131 | sizeof(struct iwlagn_scd_bc_tbl); | 131 | sizeof(struct iwlagn_scd_bc_tbl); |
132 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 132 | hw_params(priv).tfd_size = sizeof(struct iwl_tfd); |
133 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; | 133 | hw_params(priv).max_stations = IWLAGN_STATION_COUNT; |
134 | priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID; | 134 | priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID; |
135 | 135 | ||
136 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; | 136 | hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE; |
137 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; | 137 | hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE; |
138 | 138 | ||
139 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ); | 139 | hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ); |
140 | 140 | ||
141 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 141 | hw_params(priv).tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
142 | if (priv->cfg->rx_with_siso_diversity) | 142 | if (priv->cfg->rx_with_siso_diversity) |
143 | priv->hw_params.rx_chains_num = 1; | 143 | hw_params(priv).rx_chains_num = 1; |
144 | else | 144 | else |
145 | priv->hw_params.rx_chains_num = | 145 | hw_params(priv).rx_chains_num = |
146 | num_of_ant(priv->cfg->valid_rx_ant); | 146 | num_of_ant(priv->cfg->valid_rx_ant); |
147 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 147 | hw_params(priv).valid_tx_ant = priv->cfg->valid_tx_ant; |
148 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 148 | hw_params(priv).valid_rx_ant = priv->cfg->valid_rx_ant; |
149 | 149 | ||
150 | iwl2000_set_ct_threshold(priv); | 150 | iwl2000_set_ct_threshold(priv); |
151 | 151 | ||
152 | /* Set initial sensitivity parameters */ | 152 | /* Set initial sensitivity parameters */ |
153 | /* Set initial calibration set */ | 153 | /* Set initial calibration set */ |
154 | priv->hw_params.sens = &iwl2000_sensitivity; | 154 | hw_params(priv).sens = &iwl2000_sensitivity; |
155 | priv->hw_params.calib_init_cfg = | 155 | hw_params(priv).calib_init_cfg = |
156 | BIT(IWL_CALIB_XTAL) | | 156 | BIT(IWL_CALIB_XTAL) | |
157 | BIT(IWL_CALIB_LO) | | 157 | BIT(IWL_CALIB_LO) | |
158 | BIT(IWL_CALIB_TX_IQ) | | 158 | BIT(IWL_CALIB_TX_IQ) | |
159 | BIT(IWL_CALIB_BASE_BAND); | 159 | BIT(IWL_CALIB_BASE_BAND); |
160 | if (priv->cfg->need_dc_calib) | 160 | if (priv->cfg->need_dc_calib) |
161 | priv->hw_params.calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX; | 161 | hw_params(priv).calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX; |
162 | if (priv->cfg->need_temp_offset_calib) | 162 | if (priv->cfg->need_temp_offset_calib) |
163 | priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET); | 163 | hw_params(priv).calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET); |
164 | 164 | ||
165 | priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; | 165 | hw_params(priv).beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; |
166 | 166 | ||
167 | return 0; | 167 | return 0; |
168 | } | 168 | } |