aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-08-23 04:46:39 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-08-27 12:13:43 -0400
commitc90cbbbd78e45abbefd5e9e1c3c179d6126e3ddf (patch)
treeb6e92fda3ef746094998ccdbe43735e8a61656be /drivers/net/wireless/iwlwifi
parent8dfdb9d5757424f7018a643258065c4fc8e6a439 (diff)
iwlwifi: add context into tx descriptor
In status processing we'll need to find the context for a given frame, so add a context pointer to the TX info for each frame. 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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tx.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
index a2e4ca0eb7c6..bff593ab0944 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
@@ -640,6 +640,7 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
640 /* Set up driver data for this TFD */ 640 /* Set up driver data for this TFD */
641 memset(&(txq->txb[q->write_ptr]), 0, sizeof(struct iwl_tx_info)); 641 memset(&(txq->txb[q->write_ptr]), 0, sizeof(struct iwl_tx_info));
642 txq->txb[q->write_ptr].skb = skb; 642 txq->txb[q->write_ptr].skb = skb;
643 txq->txb[q->write_ptr].ctx = ctx;
643 644
644 /* Set up first empty entry in queue's array of Tx/cmd buffers */ 645 /* Set up first empty entry in queue's array of Tx/cmd buffers */
645 out_cmd = txq->cmd[q->write_ptr]; 646 out_cmd = txq->cmd[q->write_ptr];
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 01a654e6db26..90bf6b317fc7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -144,6 +144,7 @@ struct iwl_queue {
144/* One for each TFD */ 144/* One for each TFD */
145struct iwl_tx_info { 145struct iwl_tx_info {
146 struct sk_buff *skb; 146 struct sk_buff *skb;
147 struct iwl_rxon_context *ctx;
147}; 148};
148 149
149/** 150/**
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 09bca17255b4..aef5f812c7ef 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -544,6 +544,7 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
544 /* Set up driver data for this TFD */ 544 /* Set up driver data for this TFD */
545 memset(&(txq->txb[q->write_ptr]), 0, sizeof(struct iwl_tx_info)); 545 memset(&(txq->txb[q->write_ptr]), 0, sizeof(struct iwl_tx_info));
546 txq->txb[q->write_ptr].skb = skb; 546 txq->txb[q->write_ptr].skb = skb;
547 txq->txb[q->write_ptr].ctx = &priv->contexts[IWL_RXON_CTX_BSS];
547 548
548 /* Init first empty entry in queue's array of Tx/cmd buffers */ 549 /* Init first empty entry in queue's array of Tx/cmd buffers */
549 out_cmd = txq->cmd[idx]; 550 out_cmd = txq->cmd[idx];