diff options
author | Arik Nemtsov <arik@wizery.com> | 2010-10-16 11:44:51 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-01-24 15:11:46 -0500 |
commit | 1e05a81888318752e9a6d2158a95ddd6442ae117 (patch) | |
tree | 1ff3513c0a5f037746f7e5334a3eeb7f64bd661c /drivers/net/wireless/wl12xx/conf.h | |
parent | 6177eaea277527e48753d050723cd138494c98a8 (diff) |
wl12xx: Add AP related configuration to conf_drv_settings
Rate class configuration has been split up for AP and STA modes.
Template related configuration likewise separated.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/conf.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/conf.h | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/conf.h b/drivers/net/wireless/wl12xx/conf.h index a16b3616e430..7563ce3a9f66 100644 --- a/drivers/net/wireless/wl12xx/conf.h +++ b/drivers/net/wireless/wl12xx/conf.h | |||
@@ -496,6 +496,26 @@ struct conf_rx_settings { | |||
496 | CONF_HW_BIT_RATE_2MBPS) | 496 | CONF_HW_BIT_RATE_2MBPS) |
497 | #define CONF_TX_RATE_RETRY_LIMIT 10 | 497 | #define CONF_TX_RATE_RETRY_LIMIT 10 |
498 | 498 | ||
499 | /* | ||
500 | * Rates supported for data packets when operating as AP. Note the absense | ||
501 | * of the 22Mbps rate. There is a FW limitation on 12 rates so we must drop | ||
502 | * one. The rate dropped is not mandatory under any operating mode. | ||
503 | */ | ||
504 | #define CONF_TX_AP_ENABLED_RATES (CONF_HW_BIT_RATE_1MBPS | \ | ||
505 | CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \ | ||
506 | CONF_HW_BIT_RATE_6MBPS | CONF_HW_BIT_RATE_9MBPS | \ | ||
507 | CONF_HW_BIT_RATE_11MBPS | CONF_HW_BIT_RATE_12MBPS | \ | ||
508 | CONF_HW_BIT_RATE_18MBPS | CONF_HW_BIT_RATE_24MBPS | \ | ||
509 | CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \ | ||
510 | CONF_HW_BIT_RATE_54MBPS) | ||
511 | |||
512 | /* | ||
513 | * Default rates for management traffic when operating in AP mode. This | ||
514 | * should be configured according to the basic rate set of the AP | ||
515 | */ | ||
516 | #define CONF_TX_AP_DEFAULT_MGMT_RATES (CONF_HW_BIT_RATE_1MBPS | \ | ||
517 | CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS) | ||
518 | |||
499 | struct conf_tx_rate_class { | 519 | struct conf_tx_rate_class { |
500 | 520 | ||
501 | /* | 521 | /* |
@@ -636,9 +656,9 @@ struct conf_tx_settings { | |||
636 | 656 | ||
637 | /* | 657 | /* |
638 | * Configuration for rate classes for TX (currently only one | 658 | * Configuration for rate classes for TX (currently only one |
639 | * rate class supported.) | 659 | * rate class supported). Used in non-AP mode. |
640 | */ | 660 | */ |
641 | struct conf_tx_rate_class rc_conf; | 661 | struct conf_tx_rate_class sta_rc_conf; |
642 | 662 | ||
643 | /* | 663 | /* |
644 | * Configuration for access categories for TX rate control. | 664 | * Configuration for access categories for TX rate control. |
@@ -647,6 +667,22 @@ struct conf_tx_settings { | |||
647 | struct conf_tx_ac_category ac_conf[CONF_TX_MAX_AC_COUNT]; | 667 | struct conf_tx_ac_category ac_conf[CONF_TX_MAX_AC_COUNT]; |
648 | 668 | ||
649 | /* | 669 | /* |
670 | * Configuration for rate classes in AP-mode. These rate classes | ||
671 | * are for the AC TX queues | ||
672 | */ | ||
673 | struct conf_tx_rate_class ap_rc_conf[CONF_TX_MAX_AC_COUNT]; | ||
674 | |||
675 | /* | ||
676 | * Management TX rate class for AP-mode. | ||
677 | */ | ||
678 | struct conf_tx_rate_class ap_mgmt_conf; | ||
679 | |||
680 | /* | ||
681 | * Broadcast TX rate class for AP-mode. | ||
682 | */ | ||
683 | struct conf_tx_rate_class ap_bcst_conf; | ||
684 | |||
685 | /* | ||
650 | * Configuration for TID parameters. | 686 | * Configuration for TID parameters. |
651 | */ | 687 | */ |
652 | u8 tid_conf_count; | 688 | u8 tid_conf_count; |
@@ -687,6 +723,12 @@ struct conf_tx_settings { | |||
687 | * Range: CONF_HW_BIT_RATE_* bit mask | 723 | * Range: CONF_HW_BIT_RATE_* bit mask |
688 | */ | 724 | */ |
689 | u32 basic_rate_5; | 725 | u32 basic_rate_5; |
726 | |||
727 | /* | ||
728 | * TX retry limits for templates | ||
729 | */ | ||
730 | u8 tmpl_short_retry_limit; | ||
731 | u8 tmpl_long_retry_limit; | ||
690 | }; | 732 | }; |
691 | 733 | ||
692 | enum { | 734 | enum { |