X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fkernel%2Fmac80211%2Fpatches%2Fsubsys%2F341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch;fp=package%2Fkernel%2Fmac80211%2Fpatches%2Fsubsys%2F341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch;h=f450ca9ca93ed99808f67da7d04aca3280d32741;hp=a8e6e899544932a33753d444be2b8ff71498d3f2;hb=ed1e234d87fc2fc1561b02dcc2f67a464721fc6f;hpb=072bfe21132b70ff348f094c5cab9b566d56b6e5 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 a8e6e89954..f450ca9ca9 100644 --- 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 - 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); + @@ -35,8 +36,7 @@ Signed-off-by: Felix Fietkau + return 1; + + duration = minstrel_get_duration(mi->max_tp_rate[0]); - -- return MINSTREL_TRUNC(mi->avg_ampdu_len); ++ + if (duration > 400 * 1000) + return 2; +