Skip to content

Commit

Permalink
mt76: mt7921: enable HW beacon filter not depending on PM flag
Browse files Browse the repository at this point in the history
The hardware beacon filter works whether or not the PM flag is set, so we
drop redundant dependency checks on PM flags.

Additionally, the patch implicitly allow the MT7921[E, S, U] to have a
consistent configuration of the hardware beacon filter.

Tested-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
moore-bros authored and nbd168 committed Jul 11, 2022
1 parent 9485e3b commit e5674c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mt7921/main.c
Expand Up @@ -667,8 +667,7 @@ static void mt7921_bss_info_changed(struct ieee80211_hw *hw,
if (changed & BSS_CHANGED_ASSOC) {
mt7921_mcu_sta_update(dev, NULL, vif, true,
MT76_STA_INFO_STATE_ASSOC);
if (dev->pm.enable)
mt7921_mcu_set_beacon_filter(dev, vif, info->assoc);
mt7921_mcu_set_beacon_filter(dev, vif, info->assoc);
}

if (changed & BSS_CHANGED_ARP_FILTER) {
Expand Down

0 comments on commit e5674c4

Please sign in to comment.