mac80211: clean up get_tx_stats callback
The callback takes a ieee80211_tx_queue_stats with a contained array of ieee80211_tx_queue_stats_data, remove the former, rename the latter to ieee80211_tx_queue_stats and make tx_stats() take the array directly. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
3e0d4cb12f
commit
57ffc589a9
@ -525,13 +525,11 @@ void b43legacy_pio_get_tx_stats(struct b43legacy_wldev *dev,
|
||||
{
|
||||
struct b43legacy_pio *pio = &dev->pio;
|
||||
struct b43legacy_pioqueue *queue;
|
||||
struct ieee80211_tx_queue_stats_data *data;
|
||||
|
||||
queue = pio->queue1;
|
||||
data = &(stats->data[0]);
|
||||
data->len = B43legacy_PIO_MAXTXPACKETS - queue->nr_txfree;
|
||||
data->limit = B43legacy_PIO_MAXTXPACKETS;
|
||||
data->count = queue->nr_tx_packets;
|
||||
stats[0].len = B43legacy_PIO_MAXTXPACKETS - queue->nr_txfree;
|
||||
stats[0].limit = B43legacy_PIO_MAXTXPACKETS;
|
||||
stats[0].count = queue->nr_tx_packets;
|
||||
}
|
||||
|
||||
static void pio_rx_error(struct b43legacy_pioqueue *queue,
|
||||
|
Reference in New Issue
Block a user