diff options
author | Zhu Yi <yi.zhu@intel.com> | 2008-12-02 15:14:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:55 -0500 |
commit | f3f911d1773d31f11038d90b04244bc3986c4ccd (patch) | |
tree | 83e5f2f8faf67c817b0617241a69e87cc6be1e3b /drivers/net/wireless/iwlwifi/iwl-dev.h | |
parent | 74221d07408c473721cce853ef4e0e66c0b326ba (diff) |
iwlwifi: fix DMA channel number in iwl_txq_ctx_stop
The patch fixes the misuse of DMA channel number by Tx queue number in
iwl_tx_ctx_stop().
The problem was originally reported by Wu Fengguang who complains
iwlagn driver takes too long time when issuing `ifconfig wlan0 down`.
The patch now decreases the interface bring down time from 2 seconds
to 0.8 second.
This fixes bugs:
http://bugzilla.kernel.org/show_bug.cgi?id=11956
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1790
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Tested-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 846b8b01fa73..5f6805bfec3f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -508,6 +508,7 @@ struct iwl_sensitivity_ranges { | |||
508 | /** | 508 | /** |
509 | * struct iwl_hw_params | 509 | * struct iwl_hw_params |
510 | * @max_txq_num: Max # Tx queues supported | 510 | * @max_txq_num: Max # Tx queues supported |
511 | * @dma_chnl_num: Number of Tx DMA/FIFO channels | ||
511 | * @scd_bc_tbls_size: size of scheduler byte count tables | 512 | * @scd_bc_tbls_size: size of scheduler byte count tables |
512 | * @tx/rx_chains_num: Number of TX/RX chains | 513 | * @tx/rx_chains_num: Number of TX/RX chains |
513 | * @valid_tx/rx_ant: usable antennas | 514 | * @valid_tx/rx_ant: usable antennas |
@@ -525,7 +526,8 @@ struct iwl_sensitivity_ranges { | |||
525 | * @struct iwl_sensitivity_ranges: range of sensitivity values | 526 | * @struct iwl_sensitivity_ranges: range of sensitivity values |
526 | */ | 527 | */ |
527 | struct iwl_hw_params { | 528 | struct iwl_hw_params { |
528 | u16 max_txq_num; | 529 | u8 max_txq_num; |
530 | u8 dma_chnl_num; | ||
529 | u16 scd_bc_tbls_size; | 531 | u16 scd_bc_tbls_size; |
530 | u8 tx_chains_num; | 532 | u8 tx_chains_num; |
531 | u8 rx_chains_num; | 533 | u8 rx_chains_num; |