Skip to content

Commit

Permalink
mt7603: avoid unnecessary wtbl writes for ps-filter
Browse files Browse the repository at this point in the history
Only clear the skip_tx flag if powersave mode is enabled

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Nov 16, 2018
1 parent 41931e4 commit d0fdf01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mt7603/mac.c
Expand Up @@ -885,8 +885,9 @@ int mt7603_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
if (!wcid) {
wcid = &dev->global_sta.wcid;
} else {
if (info->flags & (IEEE80211_TX_CTL_NO_PS_BUFFER |
IEEE80211_TX_CTL_CLEAR_PS_FILT))
if ((info->flags & (IEEE80211_TX_CTL_NO_PS_BUFFER |
IEEE80211_TX_CTL_CLEAR_PS_FILT)) &&
test_bit(MT_WCID_FLAG_PS, &wcid->flags))
mt7603_wtbl_set_skip_tx(dev, wcid->idx, false);
}

Expand Down

0 comments on commit d0fdf01

Please sign in to comment.