diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2011-11-19 13:25:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-21 16:22:09 -0500 |
commit | c3745b40601513a6a6e901c3ec44ddefd0c428d8 (patch) | |
tree | 7a743a668417325b39c772e8f1bb8792a49b08c2 /drivers/net/wireless/p54 | |
parent | a7cf534d4ddc961bf74f54a964ad0fd19b389b6e (diff) |
p54: use ieee80211_free_txskb
In the past, it was fine to simply call
dev_kfree_skb when it was impossible to
transmit a skb. However, with the new
tx status API:
"mac80211: implement wifi TX status"
Every loose skb needs to be handed back
to mac80211.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/txrx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c index f485784a60ae..5427c27b6cd8 100644 --- a/drivers/net/wireless/p54/txrx.c +++ b/drivers/net/wireless/p54/txrx.c | |||
@@ -241,7 +241,7 @@ void p54_free_skb(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
241 | 241 | ||
242 | skb_unlink(skb, &priv->tx_queue); | 242 | skb_unlink(skb, &priv->tx_queue); |
243 | p54_tx_qos_accounting_free(priv, skb); | 243 | p54_tx_qos_accounting_free(priv, skb); |
244 | dev_kfree_skb_any(skb); | 244 | ieee80211_free_txskb(dev, skb); |
245 | } | 245 | } |
246 | EXPORT_SYMBOL_GPL(p54_free_skb); | 246 | EXPORT_SYMBOL_GPL(p54_free_skb); |
247 | 247 | ||
@@ -787,7 +787,7 @@ void p54_tx_80211(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
787 | &hdr_flags, &aid, &burst_allowed); | 787 | &hdr_flags, &aid, &burst_allowed); |
788 | 788 | ||
789 | if (p54_tx_qos_accounting_alloc(priv, skb, queue)) { | 789 | if (p54_tx_qos_accounting_alloc(priv, skb, queue)) { |
790 | dev_kfree_skb_any(skb); | 790 | ieee80211_free_txskb(dev, skb); |
791 | return; | 791 | return; |
792 | } | 792 | } |
793 | 793 | ||