diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 602a3a915684..22770f44c2fa 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -730,10 +730,11 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | |||
730 | { | 730 | { |
731 | int count; | 731 | int count; |
732 | struct iwl_queue *q; | 732 | struct iwl_queue *q; |
733 | struct iwl3945_tfd *tfd; | 733 | struct iwl3945_tfd *tfd, *tfd_tmp; |
734 | 734 | ||
735 | q = &txq->q; | 735 | q = &txq->q; |
736 | tfd = &txq->tfds39[q->write_ptr]; | 736 | tfd_tmp = (struct iwl3945_tfd *)txq->tfds; |
737 | tfd = &tfd_tmp[q->write_ptr]; | ||
737 | 738 | ||
738 | if (reset) | 739 | if (reset) |
739 | memset(tfd, 0, sizeof(*tfd)); | 740 | memset(tfd, 0, sizeof(*tfd)); |
@@ -764,7 +765,7 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | |||
764 | */ | 765 | */ |
765 | void iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) | 766 | void iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) |
766 | { | 767 | { |
767 | struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)&txq->tfds39[0]; | 768 | struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)txq->tfds; |
768 | struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr]; | 769 | struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr]; |
769 | struct pci_dev *dev = priv->pci_dev; | 770 | struct pci_dev *dev = priv->pci_dev; |
770 | int i; | 771 | int i; |