mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: improve doze opportunity
Increase mt7921 mac work timeout in oder to have move sleep opportunities Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2126b21763
commit
d325b7eff1
+2
-2
@@ -1373,12 +1373,12 @@ void mt7921_mac_work(struct work_struct *work)
|
||||
mt7921_mutex_acquire(phy->dev);
|
||||
|
||||
mt76_update_survey(mphy->dev);
|
||||
if (++mphy->mac_work_count == 5) {
|
||||
if (++mphy->mac_work_count == 2) {
|
||||
mphy->mac_work_count = 0;
|
||||
|
||||
mt7921_mac_update_mib_stats(phy);
|
||||
}
|
||||
if (++phy->sta_work_count == 10) {
|
||||
if (++phy->sta_work_count == 4) {
|
||||
phy->sta_work_count = 0;
|
||||
mt7921_mac_sta_stats_work(phy);
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
#define MT7921_PM_TIMEOUT (HZ / 12)
|
||||
#define MT7921_HW_SCAN_TIMEOUT (HZ / 10)
|
||||
#define MT7921_WATCHDOG_TIME (HZ / 10)
|
||||
#define MT7921_WATCHDOG_TIME (HZ / 4)
|
||||
#define MT7921_RESET_TIMEOUT (30 * HZ)
|
||||
|
||||
#define MT7921_TX_RING_SIZE 2048
|
||||
|
||||
Reference in New Issue
Block a user