rt2x00: Make use of ieee80211_free_txskb in tx path
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 14 Dec 2011 15:28:41 +0000 (16:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Dec 2011 19:50:11 +0000 (14:50 -0500)
ieee80211_free_txskb should be used when dropping a frame in the device
rx path such that mac80211 knows about this frame being dropped.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c

index bf0acff07807866f5aa28049a63922ae40ee2ebc..ede3c58e67836e1800662b2c5399e82e85b59442 100644 (file)
@@ -160,7 +160,7 @@ void rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
  exit_fail:
        rt2x00queue_pause_queue(queue);
  exit_free_skb:
-       dev_kfree_skb_any(skb);
+       ieee80211_free_txskb(hw, skb);
 }
 EXPORT_SYMBOL_GPL(rt2x00mac_tx);