336-mac80211-minstrel_ht-set-default-tx-aggregation-time.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From: Felix Fietkau <nbd@openwrt.org>
  2. Date: Thu, 18 Feb 2016 19:45:33 +0100
  3. Subject: [PATCH] mac80211: minstrel_ht: set default tx aggregation timeout to
  4. 0
  5. The value 5000 was put here with the addition of the timeout field to
  6. ieee80211_start_tx_ba_session. It was originally added in mac80211 to
  7. save resources for drivers like iwlwifi, which only supports a limited
  8. number of concurrent aggregation sessions.
  9. Since iwlwifi does not use minstrel_ht and other drivers don't need
  10. this, 0 is a better default - especially since there have been
  11. recent reports of aggregation setup related issues reproduced with
  12. ath9k. This should improve stability without causing any adverse
  13. effects.
  14. Cc: stable@vger.kernel.org
  15. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  16. ---
  17. --- a/net/mac80211/rc80211_minstrel_ht.c
  18. +++ b/net/mac80211/rc80211_minstrel_ht.c
  19. @@ -692,7 +692,7 @@ minstrel_aggr_check(struct ieee80211_sta
  20. if (likely(sta->ampdu_mlme.tid_tx[tid]))
  21. return;
  22. - ieee80211_start_tx_ba_session(pubsta, tid, 5000);
  23. + ieee80211_start_tx_ba_session(pubsta, tid, 0);
  24. }
  25. static void