diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-23 13:13:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-23 13:13:30 -0500 |
commit | a130883d9528eefb66285728ba6a232d8fff9465 (patch) | |
tree | 304b63e59d910be2ee2798404fe4a940bdfdd2af /drivers/net/wireless/iwlwifi/iwl-1000.c | |
parent | d9f4fbaf7053af43e6c72909c2aff18654717aed (diff) | |
parent | 65a6538a56d4c7ae8465f2a8420ddc65877b6779 (diff) |
Merge branch 'for-davem' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-1000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 71 |
1 files changed, 32 insertions, 39 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index af85458401a4..ba78bc8a259f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -147,7 +147,11 @@ static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) | |||
147 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | 147 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; |
148 | 148 | ||
149 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 149 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
150 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); | 150 | if (priv->cfg->rx_with_siso_diversity) |
151 | priv->hw_params.rx_chains_num = 1; | ||
152 | else | ||
153 | priv->hw_params.rx_chains_num = | ||
154 | num_of_ant(priv->cfg->valid_rx_ant); | ||
151 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 155 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
152 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 156 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
153 | 157 | ||
@@ -272,60 +276,49 @@ static struct iwl_ht_params iwl1000_ht_params = { | |||
272 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | 276 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
273 | }; | 277 | }; |
274 | 278 | ||
279 | #define IWL_DEVICE_1000 \ | ||
280 | .fw_name_pre = IWL1000_FW_PRE, \ | ||
281 | .ucode_api_max = IWL1000_UCODE_API_MAX, \ | ||
282 | .ucode_api_min = IWL1000_UCODE_API_MIN, \ | ||
283 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ | ||
284 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ | ||
285 | .ops = &iwl1000_ops, \ | ||
286 | .mod_params = &iwlagn_mod_params, \ | ||
287 | .base_params = &iwl1000_base_params, \ | ||
288 | .led_mode = IWL_LED_BLINK | ||
289 | |||
275 | struct iwl_cfg iwl1000_bgn_cfg = { | 290 | struct iwl_cfg iwl1000_bgn_cfg = { |
276 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BGN", | 291 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BGN", |
277 | .fw_name_pre = IWL1000_FW_PRE, | 292 | IWL_DEVICE_1000, |
278 | .ucode_api_max = IWL1000_UCODE_API_MAX, | ||
279 | .ucode_api_min = IWL1000_UCODE_API_MIN, | ||
280 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | ||
281 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, | ||
282 | .ops = &iwl1000_ops, | ||
283 | .mod_params = &iwlagn_mod_params, | ||
284 | .base_params = &iwl1000_base_params, | ||
285 | .ht_params = &iwl1000_ht_params, | 293 | .ht_params = &iwl1000_ht_params, |
286 | .led_mode = IWL_LED_BLINK, | ||
287 | }; | 294 | }; |
288 | 295 | ||
289 | struct iwl_cfg iwl1000_bg_cfg = { | 296 | struct iwl_cfg iwl1000_bg_cfg = { |
290 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BG", | 297 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BG", |
291 | .fw_name_pre = IWL1000_FW_PRE, | 298 | IWL_DEVICE_1000, |
292 | .ucode_api_max = IWL1000_UCODE_API_MAX, | ||
293 | .ucode_api_min = IWL1000_UCODE_API_MIN, | ||
294 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | ||
295 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, | ||
296 | .ops = &iwl1000_ops, | ||
297 | .mod_params = &iwlagn_mod_params, | ||
298 | .base_params = &iwl1000_base_params, | ||
299 | .led_mode = IWL_LED_BLINK, | ||
300 | }; | 299 | }; |
301 | 300 | ||
301 | #define IWL_DEVICE_100 \ | ||
302 | .fw_name_pre = IWL100_FW_PRE, \ | ||
303 | .ucode_api_max = IWL100_UCODE_API_MAX, \ | ||
304 | .ucode_api_min = IWL100_UCODE_API_MIN, \ | ||
305 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ | ||
306 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ | ||
307 | .ops = &iwl1000_ops, \ | ||
308 | .mod_params = &iwlagn_mod_params, \ | ||
309 | .base_params = &iwl1000_base_params, \ | ||
310 | .led_mode = IWL_LED_RF_STATE, \ | ||
311 | .rx_with_siso_diversity = true | ||
312 | |||
302 | struct iwl_cfg iwl100_bgn_cfg = { | 313 | struct iwl_cfg iwl100_bgn_cfg = { |
303 | .name = "Intel(R) Centrino(R) Wireless-N 100 BGN", | 314 | .name = "Intel(R) Centrino(R) Wireless-N 100 BGN", |
304 | .fw_name_pre = IWL100_FW_PRE, | 315 | IWL_DEVICE_100, |
305 | .ucode_api_max = IWL100_UCODE_API_MAX, | ||
306 | .ucode_api_min = IWL100_UCODE_API_MIN, | ||
307 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | ||
308 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, | ||
309 | .ops = &iwl1000_ops, | ||
310 | .mod_params = &iwlagn_mod_params, | ||
311 | .base_params = &iwl1000_base_params, | ||
312 | .ht_params = &iwl1000_ht_params, | 316 | .ht_params = &iwl1000_ht_params, |
313 | .led_mode = IWL_LED_RF_STATE, | ||
314 | .use_new_eeprom_reading = true, | ||
315 | }; | 317 | }; |
316 | 318 | ||
317 | struct iwl_cfg iwl100_bg_cfg = { | 319 | struct iwl_cfg iwl100_bg_cfg = { |
318 | .name = "Intel(R) Centrino(R) Wireless-N 100 BG", | 320 | .name = "Intel(R) Centrino(R) Wireless-N 100 BG", |
319 | .fw_name_pre = IWL100_FW_PRE, | 321 | IWL_DEVICE_100, |
320 | .ucode_api_max = IWL100_UCODE_API_MAX, | ||
321 | .ucode_api_min = IWL100_UCODE_API_MIN, | ||
322 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | ||
323 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, | ||
324 | .ops = &iwl1000_ops, | ||
325 | .mod_params = &iwlagn_mod_params, | ||
326 | .base_params = &iwl1000_base_params, | ||
327 | .led_mode = IWL_LED_RF_STATE, | ||
328 | .use_new_eeprom_reading = true, | ||
329 | }; | 322 | }; |
330 | 323 | ||
331 | MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX)); | 324 | MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX)); |