mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08:00
mt76: mt7921: get rid of mt7921_mac_set_beacon_filter
Remove mt7921_mac_set_beacon_filter routine since it is no longer used. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
82e0f59647
commit
b30363102a
@ -1505,34 +1505,6 @@ out:
|
||||
queue_delayed_work(dev->mt76.wq, &dev->pm.ps_work, delta);
|
||||
}
|
||||
|
||||
int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy,
|
||||
struct ieee80211_vif *vif,
|
||||
bool enable)
|
||||
{
|
||||
struct mt7921_dev *dev = phy->dev;
|
||||
bool ext_phy = phy != &dev->phy;
|
||||
int err;
|
||||
|
||||
if (!dev->pm.enable)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
err = mt7921_mcu_set_bss_pm(dev, vif, enable);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
if (enable) {
|
||||
vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER;
|
||||
mt76_set(dev, MT_WF_RFCR(ext_phy),
|
||||
MT_WF_RFCR_DROP_OTHER_BEACON);
|
||||
} else {
|
||||
vif->driver_flags &= ~IEEE80211_VIF_BEACON_FILTER;
|
||||
mt76_clear(dev, MT_WF_RFCR(ext_phy),
|
||||
MT_WF_RFCR_DROP_OTHER_BEACON);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void mt7921_coredump_work(struct work_struct *work)
|
||||
{
|
||||
struct mt7921_dev *dev;
|
||||
|
@ -380,9 +380,6 @@ int mt7921_mcu_fw_pmctrl(struct mt7921_dev *dev);
|
||||
void mt7921_pm_wake_work(struct work_struct *work);
|
||||
void mt7921_pm_power_save_work(struct work_struct *work);
|
||||
bool mt7921_wait_for_mcu_init(struct mt7921_dev *dev);
|
||||
int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy,
|
||||
struct ieee80211_vif *vif,
|
||||
bool enable);
|
||||
void mt7921_pm_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif);
|
||||
void mt7921_coredump_work(struct work_struct *work);
|
||||
int mt7921_wfsys_reset(struct mt7921_dev *dev);
|
||||
|
Loading…
Reference in New Issue
Block a user