From 36877a5b416f0e42056251b3422835bff040b936 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 17 Apr 2010 23:58:31 +0000
Subject: [PATCH] mac80211: minstrel_ht - increase space between sampling
 attempts to allow for better aggregation

SVN-Revision: 20970
---
 package/mac80211/patches/530-minstrel_ht.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/mac80211/patches/530-minstrel_ht.patch b/package/mac80211/patches/530-minstrel_ht.patch
index 2b40645f81..a77e94b5ee 100644
--- a/package/mac80211/patches/530-minstrel_ht.patch
+++ b/package/mac80211/patches/530-minstrel_ht.patch
@@ -474,7 +474,7 @@
 +	mi->ampdu_len += info->status.ampdu_len;
 +
 +	if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) {
-+		mi->sample_wait = 4 + MINSTREL_TRUNC(mi->avg_ampdu_len);
++		mi->sample_wait = 4 + 2 * MINSTREL_TRUNC(mi->avg_ampdu_len);
 +		mi->sample_tries = 3;
 +		mi->sample_count--;
 +	}
-- 
2.30.2