diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-04-15 19:01:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-16 16:00:01 -0400 |
commit | dfe7d458408188718089f41d0e2330fed13697e2 (patch) | |
tree | 45a603ef533f0716e6875e0d2f26469c609b42d0 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 77bab6024c69de781464c6ad094db6996d996938 (diff) |
iwlwifi: arrange max number of Tx queues
This patch increases the max possible number of Tx queues, but leaves
current used number of queues as HW dependent
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 2e747129f6b0..b072523c63ee 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* module parameters */ | 47 | /* module parameters */ |
48 | static struct iwl_mod_params iwl4965_mod_params = { | 48 | static struct iwl_mod_params iwl4965_mod_params = { |
49 | .num_of_queues = IWL_MAX_NUM_QUEUES, | 49 | .num_of_queues = IWL4965_MAX_NUM_QUEUES, |
50 | .enable_qos = 1, | 50 | .enable_qos = 1, |
51 | .amsdu_size_8K = 1, | 51 | .amsdu_size_8K = 1, |
52 | /* the rest are 0 by default */ | 52 | /* the rest are 0 by default */ |
@@ -2021,10 +2021,10 @@ int iwl4965_alive_notify(struct iwl_priv *priv) | |||
2021 | int iwl4965_hw_set_hw_params(struct iwl_priv *priv) | 2021 | int iwl4965_hw_set_hw_params(struct iwl_priv *priv) |
2022 | { | 2022 | { |
2023 | 2023 | ||
2024 | if ((priv->cfg->mod_params->num_of_queues > IWL_MAX_NUM_QUEUES) || | 2024 | if ((priv->cfg->mod_params->num_of_queues > IWL4965_MAX_NUM_QUEUES) || |
2025 | (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) { | 2025 | (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) { |
2026 | IWL_ERROR("invalid queues_num, should be between %d and %d\n", | 2026 | IWL_ERROR("invalid queues_num, should be between %d and %d\n", |
2027 | IWL_MIN_NUM_QUEUES, IWL_MAX_NUM_QUEUES); | 2027 | IWL_MIN_NUM_QUEUES, IWL4965_MAX_NUM_QUEUES); |
2028 | return -EINVAL; | 2028 | return -EINVAL; |
2029 | } | 2029 | } |
2030 | 2030 | ||
@@ -4362,7 +4362,7 @@ static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv, | |||
4362 | * (in Tx queue's circular buffer) of first TFD/frame in window */ | 4362 | * (in Tx queue's circular buffer) of first TFD/frame in window */ |
4363 | u16 ba_resp_scd_ssn = le16_to_cpu(ba_resp->scd_ssn); | 4363 | u16 ba_resp_scd_ssn = le16_to_cpu(ba_resp->scd_ssn); |
4364 | 4364 | ||
4365 | if (scd_flow >= ARRAY_SIZE(priv->txq)) { | 4365 | if (scd_flow >= priv->hw_params.max_txq_num) { |
4366 | IWL_ERROR("BUG_ON scd_flow is bigger than number of queues"); | 4366 | IWL_ERROR("BUG_ON scd_flow is bigger than number of queues"); |
4367 | return; | 4367 | return; |
4368 | } | 4368 | } |