Commit 6096de7f authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: add helper to free TX skb

Drivers that need to drop a frame before it
can be transmitted will usually simply free
that frame. This is currently fine, but in
the future it'll be needed to tell mac80211
about this case, so add a new routine that
frees a TX skb.
Signed-off-by: default avatarJohannes Berg <>
Signed-off-by: default avatarJohn W. Linville <>
parent d0ce1855
......@@ -1308,6 +1308,16 @@ ieee80211_get_alt_retry_rate(const struct ieee80211_hw *hw,
return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[idx + 1].idx];
* ieee80211_free_txskb - free TX skb
* @hw: the hardware
* @skb: the skb
* Free a transmit skb. Use this funtion when some failure
* to transmit happened and thus status cannot be reported.
void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
* DOC: Hardware crypto acceleration
......@@ -609,3 +609,9 @@ void ieee80211_report_low_ack(struct ieee80211_sta *pubsta, u32 num_packets)
num_packets, GFP_ATOMIC);
void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment