diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-06 11:10:00 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-06 11:10:00 -0400 |
commit | 7cb1b0887fcc61918e3d64827fbef968bb67a57a (patch) | |
tree | fa9103423af207c68be604523b3a362e1a6c3e14 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 72645eff4b2ad6cf2b016b54f9d6817cca0a621d (diff) |
iwlagn: reduce redundant parameter definitions
move paramater definitions to a device paramater structure only
leaving the device name, which antennas are used and what firmware
file to use in the iwl_cfg structure. this will not completely
remove the redundancies but greatly reduce them for devices that
only vary by name or antennas. the parameters that are more
likely to change within a given device family are left in iwl_cfg.
also separate bt param structure added to help reduce more.
Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 191 |
1 files changed, 55 insertions, 136 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 21b4b23368e6..1b25ad63b5c1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -170,13 +170,13 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
170 | { | 170 | { |
171 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && | 171 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
172 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) | 172 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
173 | priv->cfg->num_of_queues = | 173 | priv->cfg->base_params->num_of_queues = |
174 | priv->cfg->mod_params->num_of_queues; | 174 | priv->cfg->mod_params->num_of_queues; |
175 | 175 | ||
176 | priv->hw_params.max_txq_num = priv->cfg->num_of_queues; | 176 | priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; |
177 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 177 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
178 | priv->hw_params.scd_bc_tbls_size = | 178 | priv->hw_params.scd_bc_tbls_size = |
179 | priv->cfg->num_of_queues * | 179 | priv->cfg->base_params->num_of_queues * |
180 | sizeof(struct iwlagn_scd_bc_tbl); | 180 | sizeof(struct iwlagn_scd_bc_tbl); |
181 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 181 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
182 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; | 182 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; |
@@ -217,13 +217,13 @@ static int iwl5150_hw_set_hw_params(struct iwl_priv *priv) | |||
217 | { | 217 | { |
218 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && | 218 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
219 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) | 219 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
220 | priv->cfg->num_of_queues = | 220 | priv->cfg->base_params->num_of_queues = |
221 | priv->cfg->mod_params->num_of_queues; | 221 | priv->cfg->mod_params->num_of_queues; |
222 | 222 | ||
223 | priv->hw_params.max_txq_num = priv->cfg->num_of_queues; | 223 | priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; |
224 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 224 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
225 | priv->hw_params.scd_bc_tbls_size = | 225 | priv->hw_params.scd_bc_tbls_size = |
226 | priv->cfg->num_of_queues * | 226 | priv->cfg->base_params->num_of_queues * |
227 | sizeof(struct iwlagn_scd_bc_tbl); | 227 | sizeof(struct iwlagn_scd_bc_tbl); |
228 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 228 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
229 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; | 229 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; |
@@ -504,27 +504,14 @@ static const struct iwl_ops iwl5150_ops = { | |||
504 | .led = &iwlagn_led_ops, | 504 | .led = &iwlagn_led_ops, |
505 | }; | 505 | }; |
506 | 506 | ||
507 | struct iwl_cfg iwl5300_agn_cfg = { | 507 | static struct iwl_base_params iwl5000_base_params = { |
508 | .name = "Intel(R) Ultimate N WiFi Link 5300 AGN", | ||
509 | .fw_name_pre = IWL5000_FW_PRE, | ||
510 | .ucode_api_max = IWL5000_UCODE_API_MAX, | ||
511 | .ucode_api_min = IWL5000_UCODE_API_MIN, | ||
512 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
513 | .ops = &iwl5000_ops, | ||
514 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 508 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, |
515 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | ||
516 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | ||
517 | .num_of_queues = IWLAGN_NUM_QUEUES, | 509 | .num_of_queues = IWLAGN_NUM_QUEUES, |
518 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | 510 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
519 | .mod_params = &iwlagn_mod_params, | ||
520 | .valid_tx_ant = ANT_ABC, | ||
521 | .valid_rx_ant = ANT_ABC, | ||
522 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | 511 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, |
523 | .set_l0s = true, | 512 | .set_l0s = true, |
524 | .use_bsm = false, | 513 | .use_bsm = false, |
525 | .ht_greenfield_support = true, | ||
526 | .led_compensation = 51, | 514 | .led_compensation = 51, |
527 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
528 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 515 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
529 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | 516 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, |
530 | .chain_noise_scale = 1000, | 517 | .chain_noise_scale = 1000, |
@@ -534,6 +521,26 @@ struct iwl_cfg iwl5300_agn_cfg = { | |||
534 | .sensitivity_calib_by_driver = true, | 521 | .sensitivity_calib_by_driver = true, |
535 | .chain_noise_calib_by_driver = true, | 522 | .chain_noise_calib_by_driver = true, |
536 | }; | 523 | }; |
524 | static struct iwl_ht_params iwl5000_ht_params = { | ||
525 | .ht_greenfield_support = true, | ||
526 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
527 | }; | ||
528 | |||
529 | struct iwl_cfg iwl5300_agn_cfg = { | ||
530 | .name = "Intel(R) Ultimate N WiFi Link 5300 AGN", | ||
531 | .fw_name_pre = IWL5000_FW_PRE, | ||
532 | .ucode_api_max = IWL5000_UCODE_API_MAX, | ||
533 | .ucode_api_min = IWL5000_UCODE_API_MIN, | ||
534 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
535 | .valid_tx_ant = ANT_ABC, | ||
536 | .valid_rx_ant = ANT_ABC, | ||
537 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | ||
538 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | ||
539 | .ops = &iwl5000_ops, | ||
540 | .mod_params = &iwlagn_mod_params, | ||
541 | .base_params = &iwl5000_base_params, | ||
542 | .ht_params = &iwl5000_ht_params, | ||
543 | }; | ||
537 | 544 | ||
538 | struct iwl_cfg iwl5100_bgn_cfg = { | 545 | struct iwl_cfg iwl5100_bgn_cfg = { |
539 | .name = "Intel(R) WiFi Link 5100 BGN", | 546 | .name = "Intel(R) WiFi Link 5100 BGN", |
@@ -541,29 +548,14 @@ struct iwl_cfg iwl5100_bgn_cfg = { | |||
541 | .ucode_api_max = IWL5000_UCODE_API_MAX, | 548 | .ucode_api_max = IWL5000_UCODE_API_MAX, |
542 | .ucode_api_min = IWL5000_UCODE_API_MIN, | 549 | .ucode_api_min = IWL5000_UCODE_API_MIN, |
543 | .sku = IWL_SKU_G|IWL_SKU_N, | 550 | .sku = IWL_SKU_G|IWL_SKU_N, |
544 | .ops = &iwl5000_ops, | 551 | .valid_tx_ant = ANT_B, |
545 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 552 | .valid_rx_ant = ANT_AB, |
546 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 553 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, |
547 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 554 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
548 | .num_of_queues = IWLAGN_NUM_QUEUES, | 555 | .ops = &iwl5000_ops, |
549 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
550 | .mod_params = &iwlagn_mod_params, | 556 | .mod_params = &iwlagn_mod_params, |
551 | .valid_tx_ant = ANT_B, | 557 | .base_params = &iwl5000_base_params, |
552 | .valid_rx_ant = ANT_AB, | 558 | .ht_params = &iwl5000_ht_params, |
553 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
554 | .set_l0s = true, | ||
555 | .use_bsm = false, | ||
556 | .ht_greenfield_support = true, | ||
557 | .led_compensation = 51, | ||
558 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
559 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
560 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
561 | .chain_noise_scale = 1000, | ||
562 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
563 | .max_event_log_size = 512, | ||
564 | .ucode_tracing = true, | ||
565 | .sensitivity_calib_by_driver = true, | ||
566 | .chain_noise_calib_by_driver = true, | ||
567 | }; | 559 | }; |
568 | 560 | ||
569 | struct iwl_cfg iwl5100_abg_cfg = { | 561 | struct iwl_cfg iwl5100_abg_cfg = { |
@@ -572,27 +564,13 @@ struct iwl_cfg iwl5100_abg_cfg = { | |||
572 | .ucode_api_max = IWL5000_UCODE_API_MAX, | 564 | .ucode_api_max = IWL5000_UCODE_API_MAX, |
573 | .ucode_api_min = IWL5000_UCODE_API_MIN, | 565 | .ucode_api_min = IWL5000_UCODE_API_MIN, |
574 | .sku = IWL_SKU_A|IWL_SKU_G, | 566 | .sku = IWL_SKU_A|IWL_SKU_G, |
575 | .ops = &iwl5000_ops, | 567 | .valid_tx_ant = ANT_B, |
576 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 568 | .valid_rx_ant = ANT_AB, |
577 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 569 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, |
578 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 570 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
579 | .num_of_queues = IWLAGN_NUM_QUEUES, | 571 | .ops = &iwl5000_ops, |
580 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
581 | .mod_params = &iwlagn_mod_params, | 572 | .mod_params = &iwlagn_mod_params, |
582 | .valid_tx_ant = ANT_B, | 573 | .base_params = &iwl5000_base_params, |
583 | .valid_rx_ant = ANT_AB, | ||
584 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
585 | .set_l0s = true, | ||
586 | .use_bsm = false, | ||
587 | .led_compensation = 51, | ||
588 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
589 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
590 | .chain_noise_scale = 1000, | ||
591 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
592 | .max_event_log_size = 512, | ||
593 | .ucode_tracing = true, | ||
594 | .sensitivity_calib_by_driver = true, | ||
595 | .chain_noise_calib_by_driver = true, | ||
596 | }; | 574 | }; |
597 | 575 | ||
598 | struct iwl_cfg iwl5100_agn_cfg = { | 576 | struct iwl_cfg iwl5100_agn_cfg = { |
@@ -601,29 +579,14 @@ struct iwl_cfg iwl5100_agn_cfg = { | |||
601 | .ucode_api_max = IWL5000_UCODE_API_MAX, | 579 | .ucode_api_max = IWL5000_UCODE_API_MAX, |
602 | .ucode_api_min = IWL5000_UCODE_API_MIN, | 580 | .ucode_api_min = IWL5000_UCODE_API_MIN, |
603 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 581 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
604 | .ops = &iwl5000_ops, | 582 | .valid_tx_ant = ANT_B, |
605 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 583 | .valid_rx_ant = ANT_AB, |
606 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 584 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, |
607 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 585 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
608 | .num_of_queues = IWLAGN_NUM_QUEUES, | 586 | .ops = &iwl5000_ops, |
609 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
610 | .mod_params = &iwlagn_mod_params, | 587 | .mod_params = &iwlagn_mod_params, |
611 | .valid_tx_ant = ANT_B, | 588 | .base_params = &iwl5000_base_params, |
612 | .valid_rx_ant = ANT_AB, | 589 | .ht_params = &iwl5000_ht_params, |
613 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
614 | .set_l0s = true, | ||
615 | .use_bsm = false, | ||
616 | .ht_greenfield_support = true, | ||
617 | .led_compensation = 51, | ||
618 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
619 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
620 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
621 | .chain_noise_scale = 1000, | ||
622 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
623 | .max_event_log_size = 512, | ||
624 | .ucode_tracing = true, | ||
625 | .sensitivity_calib_by_driver = true, | ||
626 | .chain_noise_calib_by_driver = true, | ||
627 | }; | 590 | }; |
628 | 591 | ||
629 | struct iwl_cfg iwl5350_agn_cfg = { | 592 | struct iwl_cfg iwl5350_agn_cfg = { |
@@ -632,29 +595,14 @@ struct iwl_cfg iwl5350_agn_cfg = { | |||
632 | .ucode_api_max = IWL5000_UCODE_API_MAX, | 595 | .ucode_api_max = IWL5000_UCODE_API_MAX, |
633 | .ucode_api_min = IWL5000_UCODE_API_MIN, | 596 | .ucode_api_min = IWL5000_UCODE_API_MIN, |
634 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 597 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
635 | .ops = &iwl5000_ops, | 598 | .valid_tx_ant = ANT_ABC, |
636 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 599 | .valid_rx_ant = ANT_ABC, |
637 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, | 600 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, |
638 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, | 601 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, |
639 | .num_of_queues = IWLAGN_NUM_QUEUES, | 602 | .ops = &iwl5000_ops, |
640 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
641 | .mod_params = &iwlagn_mod_params, | 603 | .mod_params = &iwlagn_mod_params, |
642 | .valid_tx_ant = ANT_ABC, | 604 | .base_params = &iwl5000_base_params, |
643 | .valid_rx_ant = ANT_ABC, | 605 | .ht_params = &iwl5000_ht_params, |
644 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
645 | .set_l0s = true, | ||
646 | .use_bsm = false, | ||
647 | .ht_greenfield_support = true, | ||
648 | .led_compensation = 51, | ||
649 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
650 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
651 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
652 | .chain_noise_scale = 1000, | ||
653 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
654 | .max_event_log_size = 512, | ||
655 | .ucode_tracing = true, | ||
656 | .sensitivity_calib_by_driver = true, | ||
657 | .chain_noise_calib_by_driver = true, | ||
658 | }; | 606 | }; |
659 | 607 | ||
660 | struct iwl_cfg iwl5150_agn_cfg = { | 608 | struct iwl_cfg iwl5150_agn_cfg = { |
@@ -663,29 +611,14 @@ struct iwl_cfg iwl5150_agn_cfg = { | |||
663 | .ucode_api_max = IWL5150_UCODE_API_MAX, | 611 | .ucode_api_max = IWL5150_UCODE_API_MAX, |
664 | .ucode_api_min = IWL5150_UCODE_API_MIN, | 612 | .ucode_api_min = IWL5150_UCODE_API_MIN, |
665 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 613 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
666 | .ops = &iwl5150_ops, | 614 | .valid_tx_ant = ANT_A, |
667 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 615 | .valid_rx_ant = ANT_AB, |
668 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, | 616 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, |
669 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, | 617 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, |
670 | .num_of_queues = IWLAGN_NUM_QUEUES, | 618 | .ops = &iwl5150_ops, |
671 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
672 | .mod_params = &iwlagn_mod_params, | 619 | .mod_params = &iwlagn_mod_params, |
673 | .valid_tx_ant = ANT_A, | 620 | .base_params = &iwl5000_base_params, |
674 | .valid_rx_ant = ANT_AB, | 621 | .ht_params = &iwl5000_ht_params, |
675 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
676 | .set_l0s = true, | ||
677 | .use_bsm = false, | ||
678 | .ht_greenfield_support = true, | ||
679 | .led_compensation = 51, | ||
680 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | ||
681 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
682 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
683 | .chain_noise_scale = 1000, | ||
684 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
685 | .max_event_log_size = 512, | ||
686 | .ucode_tracing = true, | ||
687 | .sensitivity_calib_by_driver = true, | ||
688 | .chain_noise_calib_by_driver = true, | ||
689 | .need_dc_calib = true, | 622 | .need_dc_calib = true, |
690 | }; | 623 | }; |
691 | 624 | ||
@@ -695,27 +628,13 @@ struct iwl_cfg iwl5150_abg_cfg = { | |||
695 | .ucode_api_max = IWL5150_UCODE_API_MAX, | 628 | .ucode_api_max = IWL5150_UCODE_API_MAX, |
696 | .ucode_api_min = IWL5150_UCODE_API_MIN, | 629 | .ucode_api_min = IWL5150_UCODE_API_MIN, |
697 | .sku = IWL_SKU_A|IWL_SKU_G, | 630 | .sku = IWL_SKU_A|IWL_SKU_G, |
698 | .ops = &iwl5150_ops, | 631 | .valid_tx_ant = ANT_A, |
699 | .eeprom_size = IWLAGN_EEPROM_IMG_SIZE, | 632 | .valid_rx_ant = ANT_AB, |
700 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, | 633 | .eeprom_ver = EEPROM_5050_EEPROM_VERSION, |
701 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, | 634 | .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, |
702 | .num_of_queues = IWLAGN_NUM_QUEUES, | 635 | .ops = &iwl5150_ops, |
703 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | ||
704 | .mod_params = &iwlagn_mod_params, | 636 | .mod_params = &iwlagn_mod_params, |
705 | .valid_tx_ant = ANT_A, | 637 | .base_params = &iwl5000_base_params, |
706 | .valid_rx_ant = ANT_AB, | ||
707 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, | ||
708 | .set_l0s = true, | ||
709 | .use_bsm = false, | ||
710 | .led_compensation = 51, | ||
711 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | ||
712 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF, | ||
713 | .chain_noise_scale = 1000, | ||
714 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, | ||
715 | .max_event_log_size = 512, | ||
716 | .ucode_tracing = true, | ||
717 | .sensitivity_calib_by_driver = true, | ||
718 | .chain_noise_calib_by_driver = true, | ||
719 | .need_dc_calib = true, | 638 | .need_dc_calib = true, |
720 | }; | 639 | }; |
721 | 640 | ||