32a2ad6f0bcdafc499f257b6f925aaf0499e24c0
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / patches / 336-mac80211-minstrel_ht-set-default-tx-aggregation-time.patch
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
6 The value 5000 was put here with the addition of the timeout field to
7 ieee80211_start_tx_ba_session. It was originally added in mac80211 to
8 save resources for drivers like iwlwifi, which only supports a limited
9 number of concurrent aggregation sessions.
10
11 Since iwlwifi does not use minstrel_ht and other drivers don't need
12 this, 0 is a better default - especially since there have been
13 recent reports of aggregation setup related issues reproduced with
14 ath9k. This should improve stability without causing any adverse
15 effects.
16
17 Cc: stable@vger.kernel.org
18 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
19 ---
20
21 --- a/net/mac80211/rc80211_minstrel_ht.c
22 +++ b/net/mac80211/rc80211_minstrel_ht.c
23 @@ -692,7 +692,7 @@ minstrel_aggr_check(struct ieee80211_sta
24 if (likely(sta->ampdu_mlme.tid_tx[tid]))
25 return;
26
27 - ieee80211_start_tx_ba_session(pubsta, tid, 5000);
28 + ieee80211_start_tx_ba_session(pubsta, tid, 0);
29 }
30
31 static void