mac80211: refresh patches
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 341-mac80211-minstrel_ht-improve-ampdu-length-estimation.patch
index a8e6e89..f450ca9 100644 (file)
@@ -27,7 +27,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 -      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 <nbd@nbd.name>
 +              return 1;
 +
 +      duration = minstrel_get_duration(mi->max_tp_rate[0]);
--      return MINSTREL_TRUNC(mi->avg_ampdu_len);
++
 +      if (duration > 400 * 1000)
 +              return 2;
 +