diff options
author | David S. Miller <davem@davemloft.net> | 2008-11-26 01:27:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 01:27:58 +0300 |
commit | d7713ccc7bec64fbe0e4e39f93b17dfec711db7f (patch) | |
tree | 586afddc7e21ecaa82fc9af369778e53de93fb4e /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 11c6dd2c723a9ff9bdd4ee11b2798a08abc94e98 (diff) | |
parent | 020cf6ba7a91ccc5db359f91e9abba175fd3a0aa (diff) | |
download | linux-d7713ccc7bec64fbe0e4e39f93b17dfec711db7f.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
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 444c5cc05f03..c4c0371c763b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -1384,9 +1384,11 @@ void iwl_rx_handle(struct iwl_priv *priv) rxq->queue[i] = NULL; - pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->aligned_dma_addr, - priv->hw_params.rx_buf_size, - PCI_DMA_FROMDEVICE); + dma_sync_single_range_for_cpu( + &priv->pci_dev->dev, rxb->real_dma_addr, + rxb->aligned_dma_addr - rxb->real_dma_addr, + priv->hw_params.rx_buf_size, + PCI_DMA_FROMDEVICE); pkt = (struct iwl_rx_packet *)rxb->skb->data; /* Reclaim a command buffer only if this packet is a response |