mt76: adjust for mac80211 txq scheduling API changes

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2019-03-19 10:09:15 +01:00
parent 223649049a
commit e7bd802cf7
2 changed files with 18 additions and 2 deletions
+3 -2
View File
@@ -524,8 +524,9 @@ mt76_txq_schedule_list(struct mt76_dev *dev, enum mt76_txq_id qid)
}
ret += mt76_txq_send_burst(dev, sq, mtxq, &empty);
if (!empty)
ieee80211_return_txq(dev->hw, txq);
if (skb_queue_empty(&mtxq->retry_q))
empty = true;
ieee80211_return_txq(dev->hw, txq, !empty);
}
spin_unlock_bh(&hwq->lock);