diff options
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r-- | net/mac80211/status.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 2d931ad0e90a..ab63237107c8 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c | |||
@@ -666,3 +666,12 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
666 | dev_kfree_skb_any(skb); | 666 | dev_kfree_skb_any(skb); |
667 | } | 667 | } |
668 | EXPORT_SYMBOL(ieee80211_free_txskb); | 668 | EXPORT_SYMBOL(ieee80211_free_txskb); |
669 | |||
670 | void ieee80211_purge_tx_queue(struct ieee80211_hw *hw, | ||
671 | struct sk_buff_head *skbs) | ||
672 | { | ||
673 | struct sk_buff *skb; | ||
674 | |||
675 | while ((skb = __skb_dequeue(skbs))) | ||
676 | ieee80211_free_txskb(hw, skb); | ||
677 | } | ||