mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: switch to new api for hardware beacon filter
Current firmware only supports new api for enabling hardware beacon filter.
Fixes: 1d8efc741df80 ("mt76: mt7921: introduce Runtime PM support")
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ static int mt7921_add_interface(struct ieee80211_hw *hw,
|
||||
goto out;
|
||||
|
||||
if (dev->pm.enable) {
|
||||
ret = mt7921_mcu_set_bss_pm(dev, vif, true);
|
||||
ret = mt7921_mcu_uni_bss_bcnft(dev, vif, true);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
||||
+7
-1
@@ -1294,8 +1294,14 @@ mt7921_pm_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif)
|
||||
{
|
||||
struct mt7921_phy *phy = priv;
|
||||
struct mt7921_dev *dev = phy->dev;
|
||||
int ret;
|
||||
|
||||
if (mt7921_mcu_set_bss_pm(dev, vif, dev->pm.enable))
|
||||
if (dev->pm.enable)
|
||||
ret = mt7921_mcu_uni_bss_bcnft(dev, vif, true);
|
||||
else
|
||||
ret = mt7921_mcu_set_bss_pm(dev, vif, false);
|
||||
|
||||
if (ret)
|
||||
return;
|
||||
|
||||
if (dev->pm.enable) {
|
||||
|
||||
Reference in New Issue
Block a user