aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-27 02:48:40 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-27 02:48:40 -0500
commit5b9ab2ec04ec1e1e53939768805612ac191d7ba2 (patch)
tree22d29905c148d2d743b3eccb585fbe60fb91e25a /drivers/net/wireless/iwlwifi/iwl-agn.c
parent851fd7bd88524bb4e20f3def3127cd9167d6d0cf (diff)
parent3ec192559033ed457f0d7856838654c100fc659f (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/hp-plus.c drivers/net/wireless/ath5k/base.c drivers/net/wireless/ath9k/recv.c net/wireless/reg.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index c8ce84a1eef4..7888250117dc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1228,9 +1228,11 @@ void iwl_rx_handle(struct iwl_priv *priv)
1228 1228
1229 rxq->queue[i] = NULL; 1229 rxq->queue[i] = NULL;
1230 1230
1231 pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->aligned_dma_addr, 1231 dma_sync_single_range_for_cpu(
1232 priv->hw_params.rx_buf_size, 1232 &priv->pci_dev->dev, rxb->real_dma_addr,
1233 PCI_DMA_FROMDEVICE); 1233 rxb->aligned_dma_addr - rxb->real_dma_addr,
1234 priv->hw_params.rx_buf_size,
1235 PCI_DMA_FROMDEVICE);
1234 pkt = (struct iwl_rx_packet *)rxb->skb->data; 1236 pkt = (struct iwl_rx_packet *)rxb->skb->data;
1235 1237
1236 /* Reclaim a command buffer only if this packet is a response 1238 /* Reclaim a command buffer only if this packet is a response