Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd67a728 authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville
Browse files

carl9170: 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: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c3745b40
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ static void carl9170_tx_release(struct kref *ref)
			 *    feedback either [CTL_REQ_TX_STATUS not set]
			 */

			dev_kfree_skb_any(skb);
			ieee80211_free_txskb(ar->hw, skb);
			return;
		} else {
			/*
@@ -1432,7 +1432,7 @@ void carl9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb)

err_free:
	ar->tx_dropped++;
	dev_kfree_skb_any(skb);
	ieee80211_free_txskb(ar->hw, skb);
}

void carl9170_tx_scheduler(struct ar9170 *ar)