Skip to content

Commit

Permalink
mt76: mt7603: clear the service period on releasing PS filtered packets
Browse files Browse the repository at this point in the history
These packets have no txwi entry in the ring, so tracking via tx status does
not work. To prevent PS poll requests from being unanswered, end the service
period right away

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Felix Fietkau committed Mar 7, 2019
1 parent e004b70 commit b7001f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7603/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ mt7603_release_buffered_frames(struct ieee80211_hw *hw,
}
spin_unlock_bh(&dev->ps_lock);

if (!skb_queue_empty(&list))
ieee80211_sta_eosp(sta);

mt7603_ps_tx_list(dev, &list);

if (nframes)
Expand Down

0 comments on commit b7001f4

Please sign in to comment.