diff options
author | Bruno Randolf <br1@einfach.org> | 2010-09-16 22:37:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-21 11:05:16 -0400 |
commit | de8af45520f47d14397b603beefae3d2983ce787 (patch) | |
tree | 493af409fabc1be554664480847ed280bd06ff6c /drivers/net/wireless/ath/ath5k/ath5k.h | |
parent | 234132960dcf8ebd9d424d92a4dfb0e57fa63a17 (diff) |
ath5k: Simplify cw_min/max and AIFS configuration
Get rid of overly complicated cw_min/max and AIFS configuration:
* Validate values in ath5k_hw_set_tx_queueprops(), so we can use them directly
without further checks or computation in ath5k_hw_reset_tx_queue().
* Simplifiy by using AR5K_TUNE_AIFS|CWMIN|CWMAX variables directly since we
don't support XR or B channels. That way we can also remove
AR5K_TXQ_USEDEFAULT and the confusing logic around it.
* Update data types: AIFS is u8, CW's are u16.
* Remove now unneeded variables in ath5k_hw.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 9475b2157f2d..b96bb985b56d 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -258,8 +258,6 @@ | |||
258 | (AR5K_INIT_PROG_IFS_TURBO) \ | 258 | (AR5K_INIT_PROG_IFS_TURBO) \ |
259 | ) | 259 | ) |
260 | 260 | ||
261 | /* token to use for aifs, cwmin, cwmax in MadWiFi */ | ||
262 | #define AR5K_TXQ_USEDEFAULT ((u32) -1) | ||
263 | 261 | ||
264 | /* GENERIC CHIPSET DEFINITIONS */ | 262 | /* GENERIC CHIPSET DEFINITIONS */ |
265 | 263 | ||
@@ -530,9 +528,9 @@ struct ath5k_txq_info { | |||
530 | enum ath5k_tx_queue tqi_type; | 528 | enum ath5k_tx_queue tqi_type; |
531 | enum ath5k_tx_queue_subtype tqi_subtype; | 529 | enum ath5k_tx_queue_subtype tqi_subtype; |
532 | u16 tqi_flags; /* Tx queue flags (see above) */ | 530 | u16 tqi_flags; /* Tx queue flags (see above) */ |
533 | u32 tqi_aifs; /* Arbitrated Interframe Space */ | 531 | u8 tqi_aifs; /* Arbitrated Interframe Space */ |
534 | s32 tqi_cw_min; /* Minimum Contention Window */ | 532 | u16 tqi_cw_min; /* Minimum Contention Window */ |
535 | s32 tqi_cw_max; /* Maximum Contention Window */ | 533 | u16 tqi_cw_max; /* Maximum Contention Window */ |
536 | u32 tqi_cbr_period; /* Constant bit rate period */ | 534 | u32 tqi_cbr_period; /* Constant bit rate period */ |
537 | u32 tqi_cbr_overflow_limit; | 535 | u32 tqi_cbr_overflow_limit; |
538 | u32 tqi_burst_time; | 536 | u32 tqi_burst_time; |
@@ -1044,9 +1042,6 @@ struct ath5k_hw { | |||
1044 | #define ah_ee_version ah_capabilities.cap_eeprom.ee_version | 1042 | #define ah_ee_version ah_capabilities.cap_eeprom.ee_version |
1045 | 1043 | ||
1046 | u32 ah_atim_window; | 1044 | u32 ah_atim_window; |
1047 | u32 ah_aifs; | ||
1048 | u32 ah_cw_min; | ||
1049 | u32 ah_cw_max; | ||
1050 | u32 ah_limit_tx_retries; | 1045 | u32 ah_limit_tx_retries; |
1051 | u8 ah_coverage_class; | 1046 | u8 ah_coverage_class; |
1052 | 1047 | ||