aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 8264d3742d08..35cfa1524c35 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1379,7 +1379,7 @@ void iwl_rx_handle(struct iwl_priv *priv)
1379 1379
1380 rxq->queue[i] = NULL; 1380 rxq->queue[i] = NULL;
1381 1381
1382 pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr, 1382 pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->aligned_dma_addr,
1383 priv->hw_params.rx_buf_size, 1383 priv->hw_params.rx_buf_size,
1384 PCI_DMA_FROMDEVICE); 1384 PCI_DMA_FROMDEVICE);
1385 pkt = (struct iwl_rx_packet *)rxb->skb->data; 1385 pkt = (struct iwl_rx_packet *)rxb->skb->data;
@@ -1432,8 +1432,8 @@ void iwl_rx_handle(struct iwl_priv *priv)
1432 rxb->skb = NULL; 1432 rxb->skb = NULL;
1433 } 1433 }
1434 1434
1435 pci_unmap_single(priv->pci_dev, rxb->dma_addr, 1435 pci_unmap_single(priv->pci_dev, rxb->real_dma_addr,
1436 priv->hw_params.rx_buf_size, 1436 priv->hw_params.rx_buf_size + 256,
1437 PCI_DMA_FROMDEVICE); 1437 PCI_DMA_FROMDEVICE);
1438 spin_lock_irqsave(&rxq->lock, flags); 1438 spin_lock_irqsave(&rxq->lock, flags);
1439 list_add_tail(&rxb->list, &priv->rxq.rx_used); 1439 list_add_tail(&rxb->list, &priv->rxq.rx_used);
@@ -2334,7 +2334,6 @@ static void iwl_bg_alive_start(struct work_struct *data)
2334 mutex_lock(&priv->mutex); 2334 mutex_lock(&priv->mutex);
2335 iwl_alive_start(priv); 2335 iwl_alive_start(priv);
2336 mutex_unlock(&priv->mutex); 2336 mutex_unlock(&priv->mutex);
2337 ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC);
2338} 2337}
2339 2338
2340static void iwl_bg_rf_kill(struct work_struct *work) 2339static void iwl_bg_rf_kill(struct work_struct *work)
@@ -2390,7 +2389,6 @@ static void iwl_bg_set_monitor(struct work_struct *work)
2390 } 2389 }
2391 2390
2392 mutex_unlock(&priv->mutex); 2391 mutex_unlock(&priv->mutex);
2393 ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC);
2394} 2392}
2395 2393
2396static void iwl_bg_run_time_calib_work(struct work_struct *work) 2394static void iwl_bg_run_time_calib_work(struct work_struct *work)