diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-10 21:25:44 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-11-16 10:45:49 -0500 |
commit | 549a04e092e5e043df82fd0541f3b67ab488359b (patch) | |
tree | 440be5b9af0f6193d69e4202bc488acacb2236f7 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 4bea9b990205e4a3d432d9d6c29687215618a306 (diff) |
iwlwifi: pass txq to wake/stop queue
Instead of passing the txq->swq_id, pass the
txq struct directly to make sure that in the
future nobody will pass an invalid number.
Only three places actually change from using
the txq_id or the skb's queue_mapping to now
using txq->swq_id as well.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 4503245211ac..56f4ca7e49d9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -297,7 +297,7 @@ static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv, | |||
297 | if (iwl_queue_space(q) > q->low_mark && (txq_id >= 0) && | 297 | if (iwl_queue_space(q) > q->low_mark && (txq_id >= 0) && |
298 | (txq_id != IWL39_CMD_QUEUE_NUM) && | 298 | (txq_id != IWL39_CMD_QUEUE_NUM) && |
299 | priv->mac80211_registered) | 299 | priv->mac80211_registered) |
300 | iwl_wake_queue(priv, txq_id); | 300 | iwl_wake_queue(priv, txq); |
301 | } | 301 | } |
302 | 302 | ||
303 | /** | 303 | /** |