sync with tx queue patch api changes

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-03-11 13:45:07 +01:00
parent b7e48d28de
commit a94e01211a
+4 -2
View File
@@ -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;
}