Skip to content

Commit

Permalink
mt76: mt7921: honor pm user configuration in mt7921_sniffer_interface…
Browse files Browse the repository at this point in the history
…_iter

Honor runtime-pm user configuration in mt7921_sniffer_interface_iter
routine if we do not have a monitor interface.

Fixes: 1f12fa34e5dc5 ("mt76: mt7921: don't enable beacon filter when IEEE80211_CONF_CHANGE_MONITOR is set")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Mar 25, 2022
1 parent 201b33c commit 9666c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mt7921/main.c
Expand Up @@ -488,8 +488,8 @@ mt7921_sniffer_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif)
bool monitor = !!(hw->conf.flags & IEEE80211_CONF_MONITOR);

mt7921_mcu_set_sniffer(dev, vif, monitor);
pm->enable = !monitor;
pm->ds_enable = !monitor;
pm->enable = pm->enable_user && !monitor;
pm->ds_enable = pm->ds_enable_user && !monitor;

mt76_connac_mcu_set_deep_sleep(&dev->mt76, pm->ds_enable);

Expand Down

0 comments on commit 9666c08

Please sign in to comment.