Browse Source

mac80211: increase minstrel_ht precision by properly using a-mpdu frame stats

SVN-Revision: 20034
Felix Fietkau 16 years ago
parent
commit
05ca2b606a
1 changed files with 4 additions and 5 deletions
  1. 4 5
      package/mac80211/patches/560-minstrel_ht.patch

+ 4 - 5
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 <[email protected]>
 + *
@@ -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;
 +	}
 +
 +