aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/pio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43legacy/pio.c')
-rw-r--r--drivers/net/wireless/b43legacy/pio.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43legacy/pio.c b/drivers/net/wireless/b43legacy/pio.c
index bcdd54eb2edb..8d3d27d3cd67 100644
--- a/drivers/net/wireless/b43legacy/pio.c
+++ b/drivers/net/wireless/b43legacy/pio.c
@@ -525,13 +525,11 @@ void b43legacy_pio_get_tx_stats(struct b43legacy_wldev *dev,
525{ 525{
526 struct b43legacy_pio *pio = &dev->pio; 526 struct b43legacy_pio *pio = &dev->pio;
527 struct b43legacy_pioqueue *queue; 527 struct b43legacy_pioqueue *queue;
528 struct ieee80211_tx_queue_stats_data *data;
529 528
530 queue = pio->queue1; 529 queue = pio->queue1;
531 data = &(stats->data[0]); 530 stats[0].len = B43legacy_PIO_MAXTXPACKETS - queue->nr_txfree;
532 data->len = B43legacy_PIO_MAXTXPACKETS - queue->nr_txfree; 531 stats[0].limit = B43legacy_PIO_MAXTXPACKETS;
533 data->limit = B43legacy_PIO_MAXTXPACKETS; 532 stats[0].count = queue->nr_tx_packets;
534 data->count = queue->nr_tx_packets;
535} 533}
536 534
537static void pio_rx_error(struct b43legacy_pioqueue *queue, 535static void pio_rx_error(struct b43legacy_pioqueue *queue,