mac80211: minstrel_ht - increase space between sampling attempts to allow for better...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 17 Apr 2010 23:58:31 +0000 (23:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 17 Apr 2010 23:58:31 +0000 (23:58 +0000)
SVN-Revision: 20970

package/mac80211/patches/530-minstrel_ht.patch

index 2b40645f8113ead71984227577a82787ff60d561..a77e94b5ee906ecee72c4c80a162e0f6cfedc168 100644 (file)
 +      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--;
 +      }