From a94e01211aed8eac39331bc030fd3474357f05e0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Mar 2015 13:45:07 +0100 Subject: [PATCH] sync with tx queue patch api changes Signed-off-by: Felix Fietkau --- tx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tx.c b/tx.c index 8bbedfa7..6888c559 100644 --- a/tx.c +++ b/tx.c @@ -201,7 +201,8 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_queue *hwq, wcid = &mvif->group_wcid; } - if (ieee80211_tx_dequeue(dev->hw, txq, &skb)) { + skb = ieee80211_tx_dequeue(dev->hw, txq); + if (IS_ERR_OR_NULL(skb)) { *empty = true; return 0; } @@ -226,7 +227,8 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_queue *hwq, if (probe) break; - if (ieee80211_tx_dequeue(dev->hw, txq, &skb)) { + skb = ieee80211_tx_dequeue(dev->hw, txq); + if (IS_ERR_OR_NULL(skb)) { *empty = true; break; }