aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/4965.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2012-02-03 11:31:59 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:56:12 -0500
commit89ef1ed2d241d3dfe884055d8446a5dd94919e54 (patch)
tree97eded56defec559df8d1164d0a622a36bfe0338 /drivers/net/wireless/iwlegacy/4965.c
parentc39ae9fd505ae314a7a4a159a41e3e022cfa317f (diff)
iwlegacy: merge il_base_params into il_cfg
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965.c')
-rw-r--r--drivers/net/wireless/iwlegacy/4965.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c
index 27feb533d025..cf1d0164a9a0 100644
--- a/drivers/net/wireless/iwlegacy/4965.c
+++ b/drivers/net/wireless/iwlegacy/4965.c
@@ -614,13 +614,13 @@ il4965_hw_set_hw_params(struct il_priv *il)
614{ 614{
615 if (il->cfg->mod_params->num_of_queues >= IL_MIN_NUM_QUEUES && 615 if (il->cfg->mod_params->num_of_queues >= IL_MIN_NUM_QUEUES &&
616 il->cfg->mod_params->num_of_queues <= IL49_NUM_QUEUES) 616 il->cfg->mod_params->num_of_queues <= IL49_NUM_QUEUES)
617 il->cfg->base_params->num_of_queues = 617 il->cfg->num_of_queues =
618 il->cfg->mod_params->num_of_queues; 618 il->cfg->mod_params->num_of_queues;
619 619
620 il->hw_params.max_txq_num = il->cfg->base_params->num_of_queues; 620 il->hw_params.max_txq_num = il->cfg->num_of_queues;
621 il->hw_params.dma_chnl_num = FH49_TCSR_CHNL_NUM; 621 il->hw_params.dma_chnl_num = FH49_TCSR_CHNL_NUM;
622 il->hw_params.scd_bc_tbls_size = 622 il->hw_params.scd_bc_tbls_size =
623 il->cfg->base_params->num_of_queues * 623 il->cfg->num_of_queues *
624 sizeof(struct il4965_scd_bc_tbl); 624 sizeof(struct il4965_scd_bc_tbl);
625 il->hw_params.tfd_size = sizeof(struct il_tfd); 625 il->hw_params.tfd_size = sizeof(struct il_tfd);
626 il->hw_params.max_stations = IL4965_STATION_COUNT; 626 il->hw_params.max_stations = IL4965_STATION_COUNT;
@@ -2331,22 +2331,6 @@ const struct il_ops il4965_ops = {
2331 .legacy = &il4965_legacy_ops, 2331 .legacy = &il4965_legacy_ops,
2332}; 2332};
2333 2333
2334static struct il_base_params il4965_base_params = {
2335 .eeprom_size = IL4965_EEPROM_IMG_SIZE,
2336 .num_of_queues = IL49_NUM_QUEUES,
2337 .num_of_ampdu_queues = IL49_NUM_AMPDU_QUEUES,
2338 .pll_cfg_val = 0,
2339 .set_l0s = true,
2340 .use_bsm = true,
2341 .led_compensation = 61,
2342 .chain_noise_num_beacons = IL4965_CAL_NUM_BEACONS,
2343 .wd_timeout = IL_DEF_WD_TIMEOUT,
2344 .temperature_kelvin = true,
2345 .ucode_tracing = true,
2346 .sensitivity_calib_by_driver = true,
2347 .chain_noise_calib_by_driver = true,
2348};
2349
2350struct il_cfg il4965_cfg = { 2334struct il_cfg il4965_cfg = {
2351 .name = "Intel(R) Wireless WiFi Link 4965AGN", 2335 .name = "Intel(R) Wireless WiFi Link 4965AGN",
2352 .fw_name_pre = IL4965_FW_PRE, 2336 .fw_name_pre = IL4965_FW_PRE,
@@ -2358,13 +2342,26 @@ struct il_cfg il4965_cfg = {
2358 .eeprom_ver = EEPROM_4965_EEPROM_VERSION, 2342 .eeprom_ver = EEPROM_4965_EEPROM_VERSION,
2359 .eeprom_calib_ver = EEPROM_4965_TX_POWER_VERSION, 2343 .eeprom_calib_ver = EEPROM_4965_TX_POWER_VERSION,
2360 .mod_params = &il4965_mod_params, 2344 .mod_params = &il4965_mod_params,
2361 .base_params = &il4965_base_params,
2362 .led_mode = IL_LED_BLINK, 2345 .led_mode = IL_LED_BLINK,
2363 /* 2346 /*
2364 * Force use of chains B and C for scan RX on 5 GHz band 2347 * Force use of chains B and C for scan RX on 5 GHz band
2365 * because the device has off-channel reception on chain A. 2348 * because the device has off-channel reception on chain A.
2366 */ 2349 */
2367 .scan_rx_antennas[IEEE80211_BAND_5GHZ] = ANT_BC, 2350 .scan_rx_antennas[IEEE80211_BAND_5GHZ] = ANT_BC,
2351
2352 .eeprom_size = IL4965_EEPROM_IMG_SIZE,
2353 .num_of_queues = IL49_NUM_QUEUES,
2354 .num_of_ampdu_queues = IL49_NUM_AMPDU_QUEUES,
2355 .pll_cfg_val = 0,
2356 .set_l0s = true,
2357 .use_bsm = true,
2358 .led_compensation = 61,
2359 .chain_noise_num_beacons = IL4965_CAL_NUM_BEACONS,
2360 .wd_timeout = IL_DEF_WD_TIMEOUT,
2361 .temperature_kelvin = true,
2362 .ucode_tracing = true,
2363 .sensitivity_calib_by_driver = true,
2364 .chain_noise_calib_by_driver = true,
2368}; 2365};
2369 2366
2370/* Module firmware */ 2367/* Module firmware */