diff options
Diffstat (limited to 'drivers/net/wireless/b43/dma.c')
-rw-r--r-- | drivers/net/wireless/b43/dma.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index 615af22c49f..be7abf8916a 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c | |||
@@ -1369,7 +1369,6 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb) | |||
1369 | b43err(dev->wl, "DMA tx mapping failure\n"); | 1369 | b43err(dev->wl, "DMA tx mapping failure\n"); |
1370 | goto out; | 1370 | goto out; |
1371 | } | 1371 | } |
1372 | ring->nr_tx_packets++; | ||
1373 | if ((free_slots(ring) < TX_SLOTS_PER_FRAME) || | 1372 | if ((free_slots(ring) < TX_SLOTS_PER_FRAME) || |
1374 | should_inject_overflow(ring)) { | 1373 | should_inject_overflow(ring)) { |
1375 | /* This TX ring is full. */ | 1374 | /* This TX ring is full. */ |
@@ -1500,22 +1499,6 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev, | |||
1500 | } | 1499 | } |
1501 | } | 1500 | } |
1502 | 1501 | ||
1503 | void b43_dma_get_tx_stats(struct b43_wldev *dev, | ||
1504 | struct ieee80211_tx_queue_stats *stats) | ||
1505 | { | ||
1506 | const int nr_queues = dev->wl->hw->queues; | ||
1507 | struct b43_dmaring *ring; | ||
1508 | int i; | ||
1509 | |||
1510 | for (i = 0; i < nr_queues; i++) { | ||
1511 | ring = select_ring_by_priority(dev, i); | ||
1512 | |||
1513 | stats[i].len = ring->used_slots / TX_SLOTS_PER_FRAME; | ||
1514 | stats[i].limit = ring->nr_slots / TX_SLOTS_PER_FRAME; | ||
1515 | stats[i].count = ring->nr_tx_packets; | ||
1516 | } | ||
1517 | } | ||
1518 | |||
1519 | static void dma_rx(struct b43_dmaring *ring, int *slot) | 1502 | static void dma_rx(struct b43_dmaring *ring, int *slot) |
1520 | { | 1503 | { |
1521 | const struct b43_dma_ops *ops = ring->ops; | 1504 | const struct b43_dma_ops *ops = ring->ops; |