aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-07 16:29:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-07 16:29:37 +0000
commit05ca2b606aa4f52f253467c89da63f8d9f310e5d (patch)
tree470eff7d80d6d3c3d1f005b005d126a00b67b7eb /package/mac80211
parente111568b6ddc4229a81fd07e4fca59eb5dab923c (diff)
downloadupstream-05ca2b606aa4f52f253467c89da63f8d9f310e5d.tar.gz
upstream-05ca2b606aa4f52f253467c89da63f8d9f310e5d.tar.bz2
upstream-05ca2b606aa4f52f253467c89da63f8d9f310e5d.zip
mac80211: increase minstrel_ht precision by properly using a-mpdu frame stats
SVN-Revision: 20034
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/560-minstrel_ht.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/package/mac80211/patches/560-minstrel_ht.patch b/package/mac80211/patches/560-minstrel_ht.patch
index 2eaab62ab6..15ff3e6d72 100644
--- a/package/mac80211/patches/560-minstrel_ht.patch
+++ b/package/mac80211/patches/560-minstrel_ht.patch
@@ -68,7 +68,7 @@
--- /dev/null
+++ b/net/mac80211/rc80211_minstrel_ht.c
-@@ -0,0 +1,825 @@
+@@ -0,0 +1,824 @@
+/*
+ * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org>
+ *
@@ -463,11 +463,10 @@
+ group = minstrel_ht_get_group_idx(&ar[i]);
+ rate = &mi->groups[group].rates[ar[i].idx % 8];
+
-+ if (last && (info->flags & IEEE80211_TX_STAT_ACK) &&
-+ info->status.ampdu_len == info->status.ampdu_ack_len)
-+ rate->success++;
++ if (last && (info->flags & IEEE80211_TX_STAT_ACK))
++ rate->success += info->status.ampdu_ack_len;
+
-+ rate->attempts += ar[i].count;
++ rate->attempts += ar[i].count * info->status.ampdu_len;
+ }
+
+