diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-13 18:38:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-13 18:38:37 +0000 |
commit | b3c2781814e9473f1fb4a1b7caa518d0ed98a3de (patch) | |
tree | 0ad0e47fc5af3d1f3743024f8f7b5bb333149419 /package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch | |
parent | b2b9c9a950d03afcf66a80dfb4592365bf1bd794 (diff) | |
download | master-187ad058-b3c2781814e9473f1fb4a1b7caa518d0ed98a3de.tar.gz master-187ad058-b3c2781814e9473f1fb4a1b7caa518d0ed98a3de.tar.bz2 master-187ad058-b3c2781814e9473f1fb4a1b7caa518d0ed98a3de.zip |
mac80211: update to wireless-testing 2011-03-11
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26128 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch')
-rw-r--r-- | package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch b/package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch deleted file mode 100644 index 011f87ad31..0000000000 --- a/package/mac80211/patches/560-mac80211_minstrel_ht_sampling_fix.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- a/net/mac80211/rc80211_minstrel_ht.c -+++ b/net/mac80211/rc80211_minstrel_ht.c -@@ -415,10 +415,8 @@ minstrel_ht_tx_status(void *priv, struct - mi->sample_count--; - } - -- if (info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE) { -+ if (info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE) - mi->sample_packets += info->status.ampdu_len; -- minstrel_next_sample_idx(mi); -- } - - for (i = 0; !last; i++) { - last = (i == IEEE80211_TX_MAX_RATES - 1) || -@@ -553,13 +551,14 @@ minstrel_get_sample_rate(struct minstrel - sample_idx = sample_table[mg->column][mg->index]; - mr = &mg->rates[sample_idx]; - sample_idx += mi->sample_group * MCS_GROUP_RATES; -+ minstrel_next_sample_idx(mi); - - /* - * When not using MRR, do not sample if the probability is already - * higher than 95% to avoid wasting airtime - */ - if (!mp->has_mrr && (mr->probability > MINSTREL_FRAC(95, 100))) -- goto next; -+ return -1; - - /* - * Make sure that lower rates get sampled only occasionally, -@@ -568,17 +567,13 @@ minstrel_get_sample_rate(struct minstrel - if (minstrel_get_duration(sample_idx) > - minstrel_get_duration(mi->max_tp_rate)) { - if (mr->sample_skipped < 20) -- goto next; -+ return -1; - - if (mi->sample_slow++ > 2) -- goto next; -+ return -1; - } - - return sample_idx; -- --next: -- minstrel_next_sample_idx(mi); -- return -1; - } - - static void |