aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:10:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:25:31 -0400
commitcefeaa5fa0be02cd51968975fec9cfaf7973bb3a (patch)
tree64e687e4008687ea201bd024cce3c07595985300 /drivers/net/wireless/iwlwifi/iwl-trans.c
parentd618912417fbce4f6514fe1cbef7df2e73bdb6c2 (diff)
iwlagn: cmd_queue moves to iwl_shared
Since it is used by all the layers, it needs to move to iwl_shared. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c
index 92128383cae7..7a689df99496 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.c
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.c
@@ -311,7 +311,7 @@ static int iwl_trans_txq_alloc(struct iwl_priv *priv, struct iwl_tx_queue *txq,
311 /* Alloc driver data array and TFD circular buffer */ 311 /* Alloc driver data array and TFD circular buffer */
312 /* Driver private data, only for Tx (not command) queues, 312 /* Driver private data, only for Tx (not command) queues,
313 * not shared with device. */ 313 * not shared with device. */
314 if (txq_id != priv->cmd_queue) { 314 if (txq_id != priv->shrd->cmd_queue) {
315 txq->txb = kzalloc(sizeof(txq->txb[0]) * 315 txq->txb = kzalloc(sizeof(txq->txb[0]) *
316 TFD_QUEUE_SIZE_MAX, GFP_KERNEL); 316 TFD_QUEUE_SIZE_MAX, GFP_KERNEL);
317 if (!txq->txb) { 317 if (!txq->txb) {
@@ -515,7 +515,7 @@ static int iwl_trans_tx_alloc(struct iwl_priv *priv)
515 515
516 /* Alloc and init all Tx queues, including the command queue (#4/#9) */ 516 /* Alloc and init all Tx queues, including the command queue (#4/#9) */
517 for (txq_id = 0; txq_id < hw_params(priv).max_txq_num; txq_id++) { 517 for (txq_id = 0; txq_id < hw_params(priv).max_txq_num; txq_id++) {
518 slots_num = (txq_id == priv->cmd_queue) ? 518 slots_num = (txq_id == priv->shrd->cmd_queue) ?
519 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; 519 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS;
520 ret = iwl_trans_txq_alloc(priv, &priv->txq[txq_id], slots_num, 520 ret = iwl_trans_txq_alloc(priv, &priv->txq[txq_id], slots_num,
521 txq_id); 521 txq_id);
@@ -558,7 +558,7 @@ static int iwl_tx_init(struct iwl_priv *priv)
558 558
559 /* Alloc and init all Tx queues, including the command queue (#4/#9) */ 559 /* Alloc and init all Tx queues, including the command queue (#4/#9) */
560 for (txq_id = 0; txq_id < hw_params(priv).max_txq_num; txq_id++) { 560 for (txq_id = 0; txq_id < hw_params(priv).max_txq_num; txq_id++) {
561 slots_num = (txq_id == priv->cmd_queue) ? 561 slots_num = (txq_id == priv->shrd->cmd_queue) ?
562 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; 562 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS;
563 ret = iwl_trans_txq_init(priv, &priv->txq[txq_id], slots_num, 563 ret = iwl_trans_txq_init(priv, &priv->txq[txq_id], slots_num,
564 txq_id); 564 txq_id);
@@ -841,7 +841,7 @@ static void iwl_trans_tx_start(struct iwl_priv *priv)
841 else 841 else
842 queue_to_fifo = iwlagn_default_queue_to_tx_fifo; 842 queue_to_fifo = iwlagn_default_queue_to_tx_fifo;
843 843
844 iwl_trans_set_wr_ptrs(priv, priv->cmd_queue, 0); 844 iwl_trans_set_wr_ptrs(priv, priv->shrd->cmd_queue, 0);
845 845
846 /* make sure all queue are not stopped */ 846 /* make sure all queue are not stopped */
847 memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped)); 847 memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped));