mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: connac: unschedule mac_work before going to sleep
In order to wake the device less frequently and so reduce power consumpation, unschedule mac_work before going to sleep Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2ae25c7e54
commit
349bbb9d6f
+3
-1
@@ -42,8 +42,10 @@ void mt76_connac_power_save_sched(struct mt76_phy *phy,
|
||||
|
||||
pm->last_activity = jiffies;
|
||||
|
||||
if (!test_bit(MT76_STATE_PM, &phy->state))
|
||||
if (!test_bit(MT76_STATE_PM, &phy->state)) {
|
||||
cancel_delayed_work(&phy->mac_work);
|
||||
queue_delayed_work(dev->wq, &pm->ps_work, pm->idle_timeout);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_connac_power_save_sched);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user