From 1c751f391f7a99047d34835fa5c048ff17e17028 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Jan 2019 17:33:38 +0100 Subject: [PATCH] mt76: avoid scheduling tx queues for powersave stations Signed-off-by: Felix Fietkau --- tx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tx.c b/tx.c index 1ea08ce6..ef38e862 100644 --- a/tx.c +++ b/tx.c @@ -396,6 +396,11 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_queue *hwq, bool probe; int idx; + if (test_bit(MT_WCID_FLAG_PS, &wcid->flags)) { + *empty = true; + return 0; + } + skb = mt76_txq_dequeue(dev, mtxq, false); if (!skb) { *empty = true;