diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-04-29 11:18:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:26 -0400 |
commit | 57ffc589a92424f9def74fe0d49b2f7763ff07fd (patch) | |
tree | 2ec3f60cac2e5757206dee219e7b3a60ded13004 /drivers/net/wireless/rt2x00 | |
parent | 3e0d4cb12f6fd97193a455b49125398b2231c87c (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index d4ceab7646e7..7bc5129484f2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -457,9 +457,9 @@ int rt2x00mac_get_tx_stats(struct ieee80211_hw *hw, | |||
457 | unsigned int i; | 457 | unsigned int i; |
458 | 458 | ||
459 | for (i = 0; i < hw->queues; i++) { | 459 | for (i = 0; i < hw->queues; i++) { |
460 | stats->data[i].len = rt2x00dev->tx[i].length; | 460 | stats[i].len = rt2x00dev->tx[i].length; |
461 | stats->data[i].limit = rt2x00dev->tx[i].limit; | 461 | stats[i].limit = rt2x00dev->tx[i].limit; |
462 | stats->data[i].count = rt2x00dev->tx[i].count; | 462 | stats[i].count = rt2x00dev->tx[i].count; |
463 | } | 463 | } |
464 | 464 | ||
465 | return 0; | 465 | return 0; |