diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 8 |
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 |