mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 15:45:45 +00:00
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: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c3745b4060
commit
fd67a728a9
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ static void carl9170_tx_release(struct kref *ref)
|
||||||
* feedback either [CTL_REQ_TX_STATUS not set]
|
* feedback either [CTL_REQ_TX_STATUS not set]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dev_kfree_skb_any(skb);
|
ieee80211_free_txskb(ar->hw, skb);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
@ -1432,7 +1432,7 @@ void carl9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
|
||||||
|
|
||||||
err_free:
|
err_free:
|
||||||
ar->tx_dropped++;
|
ar->tx_dropped++;
|
||||||
dev_kfree_skb_any(skb);
|
ieee80211_free_txskb(ar->hw, skb);
|
||||||
}
|
}
|
||||||
|
|
||||||
void carl9170_tx_scheduler(struct ar9170 *ar)
|
void carl9170_tx_scheduler(struct ar9170 *ar)
|
||||||
|
|
Loading…
Reference in a new issue