aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-10-01 23:28:36 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-10-19 12:35:55 +0200
commite6cadb215cba051464eaeba8040d8c82d524b088 (patch)
treeaf1d20d6c2168dda699b1a4de622acb848fe21fc /package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch
parent67dc023f87699e56457a3ba4a97da60605042bd7 (diff)
downloadupstream-e6cadb215cba051464eaeba8040d8c82d524b088.tar.gz
upstream-e6cadb215cba051464eaeba8040d8c82d524b088.tar.bz2
upstream-e6cadb215cba051464eaeba8040d8c82d524b088.zip
mac80211: Update to version 5.4-rc2
This updates mac80211 to backports based on kernel 5.4-rc2 ath10k-ct was updated to match the API changes and iw now uses the new nl80211.h header file. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch')
-rw-r--r--package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch b/package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch
deleted file mode 100644
index 11f6ead13d..0000000000
--- a/package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-reduce-unnecessary-rate-probing.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From: Felix Fietkau <nbd@nbd.name>
-Date: Wed, 5 Jun 2019 20:42:49 +0200
-Subject: [PATCH] mac80211: minstrel_ht: reduce unnecessary rate probing
- attempts
-
-On hardware with static fallback tables (e.g. mt76x2), rate probing attempts
-can be very expensive.
-On such devices, avoid sampling rates slower than the per-group max throughput
-rate, based on the assumption that the fallback table will take care of probing
-lower rates within that group if the higher rates fail.
-To make this work, this also fixes a wrong initialization in the previously
-unused per-group sorted rate array.
-To further reduce unnecessary probing attempts, skip duplicate attempts on
-rates slower than the max throughput rate.
-
-Signed-off-by: Felix Fietkau <nbd@nbd.name>
----
-
---- a/net/mac80211/rc80211_minstrel_ht.c
-+++ b/net/mac80211/rc80211_minstrel_ht.c
-@@ -1059,6 +1059,21 @@ minstrel_get_sample_rate(struct minstrel
- minstrel_get_duration(mi->max_prob_rate) * 3 < sample_dur)
- return -1;
-
-+
-+ /*
-+ * For devices with no configurable multi-rate retry, skip sampling
-+ * below the per-group max throughput rate, and only use one sampling
-+ * attempt per rate
-+ */
-+ if (mp->hw->max_rates == 1 &&
-+ (minstrel_get_duration(mg->max_group_tp_rate[0]) < sample_dur ||
-+ mrs->attempts))
-+ return -1;
-+
-+ /* Skip already sampled slow rates */
-+ if (sample_dur >= minstrel_get_duration(tp_rate1) && mrs->attempts)
-+ return -1;
-+
- /*
- * Make sure that lower rates get sampled only occasionally,
- * if the link is working perfectly.