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-3945.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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index f4aa229986ca..f059b1dd4d41 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -273,7 +273,7 @@ static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv, | |||
273 | struct iwl_queue *q = &txq->q; | 273 | struct iwl_queue *q = &txq->q; |
274 | struct iwl_tx_info *tx_info; | 274 | struct iwl_tx_info *tx_info; |
275 | 275 | ||
276 | BUG_ON(txq_id == IWL_CMD_QUEUE_NUM); | 276 | BUG_ON(txq_id == IWL39_CMD_QUEUE_NUM); |
277 | 277 | ||
278 | for (index = iwl_queue_inc_wrap(index, q->n_bd); q->read_ptr != index; | 278 | for (index = iwl_queue_inc_wrap(index, q->n_bd); q->read_ptr != index; |
279 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { | 279 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { |
@@ -285,7 +285,7 @@ static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv, | |||
285 | } | 285 | } |
286 | 286 | ||
287 | if (iwl_queue_space(q) > q->low_mark && (txq_id >= 0) && | 287 | if (iwl_queue_space(q) > q->low_mark && (txq_id >= 0) && |
288 | (txq_id != IWL_CMD_QUEUE_NUM) && | 288 | (txq_id != IWL39_CMD_QUEUE_NUM) && |
289 | priv->mac80211_registered) | 289 | priv->mac80211_registered) |
290 | iwl_wake_queue(priv, txq_id); | 290 | iwl_wake_queue(priv, txq_id); |
291 | } | 291 | } |
@@ -760,7 +760,7 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, | |||
760 | data_retry_limit = IWL_DEFAULT_TX_RETRY; | 760 | data_retry_limit = IWL_DEFAULT_TX_RETRY; |
761 | tx_cmd->data_retry_limit = data_retry_limit; | 761 | tx_cmd->data_retry_limit = data_retry_limit; |
762 | 762 | ||
763 | if (tx_id >= IWL_CMD_QUEUE_NUM) | 763 | if (tx_id >= IWL39_CMD_QUEUE_NUM) |
764 | rts_retry_limit = 3; | 764 | rts_retry_limit = 3; |
765 | else | 765 | else |
766 | rts_retry_limit = 7; | 766 | rts_retry_limit = 7; |
@@ -909,7 +909,7 @@ static int iwl3945_txq_ctx_reset(struct iwl_priv *priv) | |||
909 | 909 | ||
910 | /* Tx queue(s) */ | 910 | /* Tx queue(s) */ |
911 | for (txq_id = 0; txq_id < priv->hw_params.max_txq_num; txq_id++) { | 911 | for (txq_id = 0; txq_id < priv->hw_params.max_txq_num; txq_id++) { |
912 | slots_num = (txq_id == IWL_CMD_QUEUE_NUM) ? | 912 | slots_num = (txq_id == IWL39_CMD_QUEUE_NUM) ? |
913 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; | 913 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; |
914 | rc = iwl_tx_queue_init(priv, &priv->txq[txq_id], slots_num, | 914 | rc = iwl_tx_queue_init(priv, &priv->txq[txq_id], slots_num, |
915 | txq_id); | 915 | txq_id); |
@@ -1072,7 +1072,7 @@ void iwl3945_hw_txq_ctx_free(struct iwl_priv *priv) | |||
1072 | if (priv->txq) | 1072 | if (priv->txq) |
1073 | for (txq_id = 0; txq_id < priv->hw_params.max_txq_num; | 1073 | for (txq_id = 0; txq_id < priv->hw_params.max_txq_num; |
1074 | txq_id++) | 1074 | txq_id++) |
1075 | if (txq_id == IWL_CMD_QUEUE_NUM) | 1075 | if (txq_id == IWL39_CMD_QUEUE_NUM) |
1076 | iwl_cmd_queue_free(priv); | 1076 | iwl_cmd_queue_free(priv); |
1077 | else | 1077 | else |
1078 | iwl_tx_queue_free(priv, txq_id); | 1078 | iwl_tx_queue_free(priv, txq_id); |