aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch')
-rw-r--r--SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch b/SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch
deleted file mode 100644
index a397014..0000000
--- a/SOURCES/mt76:-mt7921:-Disable-powersave-features-by-default.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Jan200101 <sentrycraft123@gmail.com>
-Date: Mon, 27 Nov 2023 15:25:48 +0100
-Subject: [PATCH] mt76: mt7921: Disable powersave features by default
-
-This brings WiFi latency down considerably and makes latency consistent by
-disabling runtime PM and typical powersave features by default. The actual
-power consumption difference is inconsequential on desktops and laptops,
-while the performance difference is monumental. Latencies of 20+ ms are no
-longer observed after this change, and the connection is much more stable.
-
-Signed-off-by: Jan200101 <sentrycraft123@gmail.com>
----
- drivers/net/wireless/mediatek/mt76/mt7921/init.c | 8 ++------
- 1 file changed, 2 insertions(+), 6 deletions(-)
-
-diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
-index ff63f37f67d9..840b4c606c83 100644
---- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c
-+++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
-@@ -220,12 +220,6 @@ int mt7921_register_device(struct mt792x_dev *dev)
- dev->pm.idle_timeout = MT792x_PM_TIMEOUT;
- dev->pm.stats.last_wake_event = jiffies;
- dev->pm.stats.last_doze_event = jiffies;
-- if (!mt76_is_usb(&dev->mt76)) {
-- dev->pm.enable_user = true;
-- dev->pm.enable = true;
-- dev->pm.ds_enable_user = true;
-- dev->pm.ds_enable = true;
-- }
-
- if (!mt76_is_mmio(&dev->mt76))
- hw->extra_tx_headroom += MT_SDIO_TXD_SIZE + MT_SDIO_HDR_SIZE;
-@@ -240,6 +234,8 @@ int mt7921_register_device(struct mt792x_dev *dev)
- if (ret)
- return ret;
-
-+ hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
-+
- hw->wiphy->reg_notifier = mt7921_regd_notifier;
- dev->mphy.sband_2g.sband.ht_cap.cap |=
- IEEE80211_HT_CAP_LDPC_CODING |