diff options
-rw-r--r-- | include/net/mac80211.h | 10 | ||||
-rw-r--r-- | net/mac80211/status.c | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index eddf49202c50..b9b9c9452131 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1309,6 +1309,16 @@ ieee80211_get_alt_retry_rate(const struct ieee80211_hw *hw, | |||
1309 | } | 1309 | } |
1310 | 1310 | ||
1311 | /** | 1311 | /** |
1312 | * ieee80211_free_txskb - free TX skb | ||
1313 | * @hw: the hardware | ||
1314 | * @skb: the skb | ||
1315 | * | ||
1316 | * Free a transmit skb. Use this funtion when some failure | ||
1317 | * to transmit happened and thus status cannot be reported. | ||
1318 | */ | ||
1319 | void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb); | ||
1320 | |||
1321 | /** | ||
1312 | * DOC: Hardware crypto acceleration | 1322 | * DOC: Hardware crypto acceleration |
1313 | * | 1323 | * |
1314 | * mac80211 is capable of taking advantage of many hardware | 1324 | * mac80211 is capable of taking advantage of many hardware |
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index df643cedf9b9..e1f69545974a 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c | |||
@@ -609,3 +609,9 @@ void ieee80211_report_low_ack(struct ieee80211_sta *pubsta, u32 num_packets) | |||
609 | num_packets, GFP_ATOMIC); | 609 | num_packets, GFP_ATOMIC); |
610 | } | 610 | } |
611 | EXPORT_SYMBOL(ieee80211_report_low_ack); | 611 | EXPORT_SYMBOL(ieee80211_report_low_ack); |
612 | |||
613 | void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb) | ||
614 | { | ||
615 | dev_kfree_skb_any(skb); | ||
616 | } | ||
617 | EXPORT_SYMBOL(ieee80211_free_txskb); | ||