diff options
author | Kalle Valo <kalle.valo@iki.fi> | 2010-02-07 12:51:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-08 16:51:00 -0500 |
commit | 8b2bbe66abfdc60f73b094a56ab29bfbf939201c (patch) | |
tree | e964523cb00ee9dc17b2d574f104877076b2a864 /drivers/net/wireless/b43legacy/main.c | |
parent | 3b27521a5be8b700451d54d4fa670f754e7f9720 (diff) |
b43legacy: remove get_tx_stats() mac80211 op
get_tx_stats() will be removed from mac80211.
Compile-tested only.
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/main.c')
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index b4e89a35e3fb..08523a45e23b 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -2446,29 +2446,6 @@ static int b43legacy_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
2446 | return 0; | 2446 | return 0; |
2447 | } | 2447 | } |
2448 | 2448 | ||
2449 | static int b43legacy_op_get_tx_stats(struct ieee80211_hw *hw, | ||
2450 | struct ieee80211_tx_queue_stats *stats) | ||
2451 | { | ||
2452 | struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); | ||
2453 | struct b43legacy_wldev *dev = wl->current_dev; | ||
2454 | unsigned long flags; | ||
2455 | int err = -ENODEV; | ||
2456 | |||
2457 | if (!dev) | ||
2458 | goto out; | ||
2459 | spin_lock_irqsave(&wl->irq_lock, flags); | ||
2460 | if (likely(b43legacy_status(dev) >= B43legacy_STAT_STARTED)) { | ||
2461 | if (b43legacy_using_pio(dev)) | ||
2462 | b43legacy_pio_get_tx_stats(dev, stats); | ||
2463 | else | ||
2464 | b43legacy_dma_get_tx_stats(dev, stats); | ||
2465 | err = 0; | ||
2466 | } | ||
2467 | spin_unlock_irqrestore(&wl->irq_lock, flags); | ||
2468 | out: | ||
2469 | return err; | ||
2470 | } | ||
2471 | |||
2472 | static int b43legacy_op_get_stats(struct ieee80211_hw *hw, | 2449 | static int b43legacy_op_get_stats(struct ieee80211_hw *hw, |
2473 | struct ieee80211_low_level_stats *stats) | 2450 | struct ieee80211_low_level_stats *stats) |
2474 | { | 2451 | { |
@@ -3513,7 +3490,6 @@ static const struct ieee80211_ops b43legacy_hw_ops = { | |||
3513 | .bss_info_changed = b43legacy_op_bss_info_changed, | 3490 | .bss_info_changed = b43legacy_op_bss_info_changed, |
3514 | .configure_filter = b43legacy_op_configure_filter, | 3491 | .configure_filter = b43legacy_op_configure_filter, |
3515 | .get_stats = b43legacy_op_get_stats, | 3492 | .get_stats = b43legacy_op_get_stats, |
3516 | .get_tx_stats = b43legacy_op_get_tx_stats, | ||
3517 | .start = b43legacy_op_start, | 3493 | .start = b43legacy_op_start, |
3518 | .stop = b43legacy_op_stop, | 3494 | .stop = b43legacy_op_stop, |
3519 | .set_tim = b43legacy_op_beacon_set_tim, | 3495 | .set_tim = b43legacy_op_beacon_set_tim, |