]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
p54: use ieee80211_free_txskb
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 19 Nov 2011 18:25:02 +0000 (19:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Nov 2011 21:22:09 +0000 (16:22 -0500)
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>
drivers/net/wireless/p54/txrx.c

index f485784a60aeb0a903871464e6db494c71dc2bf6..5427c27b6cd86f6194812b7cdfd849ca1d7b27e3 100644 (file)
@@ -241,7 +241,7 @@ void p54_free_skb(struct ieee80211_hw *dev, struct sk_buff *skb)
 
        skb_unlink(skb, &priv->tx_queue);
        p54_tx_qos_accounting_free(priv, skb);
-       dev_kfree_skb_any(skb);
+       ieee80211_free_txskb(dev, skb);
 }
 EXPORT_SYMBOL_GPL(p54_free_skb);
 
@@ -787,7 +787,7 @@ void p54_tx_80211(struct ieee80211_hw *dev, struct sk_buff *skb)
                            &hdr_flags, &aid, &burst_allowed);
 
        if (p54_tx_qos_accounting_alloc(priv, skb, queue)) {
-               dev_kfree_skb_any(skb);
+               ieee80211_free_txskb(dev, skb);
                return;
        }