projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: refresh patches
[openwrt/openwrt.git]
/
package
/
kernel
/
mac80211
/
patches
/
subsys
/
341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
diff --git
a/package/kernel/mac80211/patches/subsys/341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
b/package/kernel/mac80211/patches/subsys/341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
index a8e6e899544932a33753d444be2b8ff71498d3f2..f450ca9ca93ed99808f67da7d04aca3280d32741 100644
(file)
--- a/
package/kernel/mac80211/patches/subsys/341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
+++ b/
package/kernel/mac80211/patches/subsys/341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
@@
-27,7
+27,8
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
- if (!mi->avg_ampdu_len)
- return AVG_AMPDU_SIZE;
+ int duration;
- if (!mi->avg_ampdu_len)
- return AVG_AMPDU_SIZE;
+ int duration;
-+
+
+- return MINSTREL_TRUNC(mi->avg_ampdu_len);
+ if (mi->avg_ampdu_len)
+ return MINSTREL_TRUNC(mi->avg_ampdu_len);
+
+ if (mi->avg_ampdu_len)
+ return MINSTREL_TRUNC(mi->avg_ampdu_len);
+
@@
-35,8
+36,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
+ return 1;
+
+ duration = minstrel_get_duration(mi->max_tp_rate[0]);
+ return 1;
+
+ duration = minstrel_get_duration(mi->max_tp_rate[0]);
-
-- return MINSTREL_TRUNC(mi->avg_ampdu_len);
++
+ if (duration > 400 * 1000)
+ return 2;
+
+ if (duration > 400 * 1000)
+ return 2;
+