Commit ffc9a7ff authored by Felix Fietkau's avatar Felix Fietkau

mt76: when releasing PS frames, end the service period if no frame was found

Fixes a rare corner case if the txq dequeue attempt fails, but mac80211
still has PS buffered packets
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent b7001f46
...@@ -377,7 +377,10 @@ mt76_release_buffered_frames(struct ieee80211_hw *hw, struct ieee80211_sta *sta, ...@@ -377,7 +377,10 @@ mt76_release_buffered_frames(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
if (last_skb) { if (last_skb) {
mt76_queue_ps_skb(dev, sta, last_skb, true); mt76_queue_ps_skb(dev, sta, last_skb, true);
dev->queue_ops->kick(dev, hwq); dev->queue_ops->kick(dev, hwq);
} else {
ieee80211_sta_eosp(sta);
} }
spin_unlock_bh(&hwq->lock); spin_unlock_bh(&hwq->lock);
} }
EXPORT_SYMBOL_GPL(mt76_release_buffered_frames); EXPORT_SYMBOL_GPL(mt76_release_buffered_frames);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment