diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-23 04:46:33 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-08-27 11:27:29 -0400 |
commit | 13bb9483e190b95b04b22280ec9efa6b48469fd6 (patch) | |
tree | fdc39df48473db0ed02193eeb92d0e6a06a33ff8 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 246ed355221076884d225f9d8a4c30a048be8162 (diff) |
iwlwifi: prepare for PAN queue/fifo assignment
PAN ucode will require a different queue assignment,
in particular queue 9 instead of 4 should be used for
commands.
This is required because the ucode will stop/start
queues 4 and 8 depending on the PAN state, since
queue 8 will be used for PAN multicast (after DTIM).
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 82f32305f50e..cda389c3b025 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -576,7 +576,7 @@ static int iwl4965_alive_notify(struct iwl_priv *priv) | |||
576 | /* Activate all Tx DMA/FIFO channels */ | 576 | /* Activate all Tx DMA/FIFO channels */ |
577 | priv->cfg->ops->lib->txq_set_sched(priv, IWL_MASK(0, 6)); | 577 | priv->cfg->ops->lib->txq_set_sched(priv, IWL_MASK(0, 6)); |
578 | 578 | ||
579 | iwl4965_set_wr_ptrs(priv, IWL_CMD_QUEUE_NUM, 0); | 579 | iwl4965_set_wr_ptrs(priv, IWL_DEFAULT_CMD_QUEUE_NUM, 0); |
580 | 580 | ||
581 | /* make sure all queue are not stopped */ | 581 | /* make sure all queue are not stopped */ |
582 | memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped)); | 582 | memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped)); |
@@ -587,6 +587,7 @@ static int iwl4965_alive_notify(struct iwl_priv *priv) | |||
587 | priv->txq_ctx_active_msk = 0; | 587 | priv->txq_ctx_active_msk = 0; |
588 | /* Map each Tx/cmd queue to its corresponding fifo */ | 588 | /* Map each Tx/cmd queue to its corresponding fifo */ |
589 | BUILD_BUG_ON(ARRAY_SIZE(default_queue_to_tx_fifo) != 7); | 589 | BUILD_BUG_ON(ARRAY_SIZE(default_queue_to_tx_fifo) != 7); |
590 | |||
590 | for (i = 0; i < ARRAY_SIZE(default_queue_to_tx_fifo); i++) { | 591 | for (i = 0; i < ARRAY_SIZE(default_queue_to_tx_fifo); i++) { |
591 | int ac = default_queue_to_tx_fifo[i]; | 592 | int ac = default_queue_to_tx_fifo[i]; |
592 | 593 | ||