diff options
author | Kalle Valo <kalle.valo@iki.fi> | 2010-02-07 12:50:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-08 16:51:00 -0500 |
commit | 3b27521a5be8b700451d54d4fa670f754e7f9720 (patch) | |
tree | 3c455b83f6a5cfc038ca1d7fdf0fa6960181c7b9 /drivers/net/wireless/b43/pio.c | |
parent | 3b2119096d7ec4ef50427e07b562897f2c139c11 (diff) |
b43: remove get_tx_stats() mac80211 op
get_tx_stats() will be removed from mac80211.
Compile-tested only.
Cc: Stefano Brivio <stefano.brivio@polimi.it>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/pio.c')
-rw-r--r-- | drivers/net/wireless/b43/pio.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c index c01b8e02412..a6062c3e89a 100644 --- a/drivers/net/wireless/b43/pio.c +++ b/drivers/net/wireless/b43/pio.c | |||
@@ -559,7 +559,6 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *skb) | |||
559 | b43err(dev->wl, "PIO transmission failure\n"); | 559 | b43err(dev->wl, "PIO transmission failure\n"); |
560 | goto out; | 560 | goto out; |
561 | } | 561 | } |
562 | q->nr_tx_packets++; | ||
563 | 562 | ||
564 | B43_WARN_ON(q->buffer_used > q->buffer_size); | 563 | B43_WARN_ON(q->buffer_used > q->buffer_size); |
565 | if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || | 564 | if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || |
@@ -605,22 +604,6 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev, | |||
605 | } | 604 | } |
606 | } | 605 | } |
607 | 606 | ||
608 | void b43_pio_get_tx_stats(struct b43_wldev *dev, | ||
609 | struct ieee80211_tx_queue_stats *stats) | ||
610 | { | ||
611 | const int nr_queues = dev->wl->hw->queues; | ||
612 | struct b43_pio_txqueue *q; | ||
613 | int i; | ||
614 | |||
615 | for (i = 0; i < nr_queues; i++) { | ||
616 | q = select_queue_by_priority(dev, i); | ||
617 | |||
618 | stats[i].len = B43_PIO_MAX_NR_TXPACKETS - q->free_packet_slots; | ||
619 | stats[i].limit = B43_PIO_MAX_NR_TXPACKETS; | ||
620 | stats[i].count = q->nr_tx_packets; | ||
621 | } | ||
622 | } | ||
623 | |||
624 | /* Returns whether we should fetch another frame. */ | 607 | /* Returns whether we should fetch another frame. */ |
625 | static bool pio_rx_frame(struct b43_pio_rxqueue *q) | 608 | static bool pio_rx_frame(struct b43_pio_rxqueue *q) |
626 | { | 609 | { |