diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 93bec140e598..8efab3983528 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -818,3 +818,17 @@ void rt2x00mac_get_ringparam(struct ieee80211_hw *hw, | |||
818 | *rx_max = rt2x00dev->rx->limit; | 818 | *rx_max = rt2x00dev->rx->limit; |
819 | } | 819 | } |
820 | EXPORT_SYMBOL_GPL(rt2x00mac_get_ringparam); | 820 | EXPORT_SYMBOL_GPL(rt2x00mac_get_ringparam); |
821 | |||
822 | bool rt2x00mac_tx_frames_pending(struct ieee80211_hw *hw) | ||
823 | { | ||
824 | struct rt2x00_dev *rt2x00dev = hw->priv; | ||
825 | struct data_queue *queue; | ||
826 | |||
827 | tx_queue_for_each(rt2x00dev, queue) { | ||
828 | if (!rt2x00queue_empty(queue)) | ||
829 | return true; | ||
830 | } | ||
831 | |||
832 | return false; | ||
833 | } | ||
834 | EXPORT_SYMBOL_GPL(rt2x00mac_tx_frames_pending); | ||