mirror of https://github.com/hak5/openwrt-owl.git
mac80211: decrease the minstrel_ht sampling interval for faster rate adaption
SVN-Revision: 23555owl
parent
45c088cdf1
commit
1178bae74d
|
@ -18,13 +18,14 @@
|
||||||
|
|
||||||
cur_prob = 0;
|
cur_prob = 0;
|
||||||
cur_prob_tp = 0;
|
cur_prob_tp = 0;
|
||||||
@@ -572,6 +573,10 @@ minstrel_get_sample_rate(struct minstrel
|
@@ -572,6 +573,11 @@ minstrel_get_sample_rate(struct minstrel
|
||||||
return sample_idx;
|
return sample_idx;
|
||||||
|
|
||||||
next:
|
next:
|
||||||
+ if (mi->sample_retry > 0) {
|
+ if (mi->sample_retry > 0) {
|
||||||
+ mi->sample_retry--;
|
+ mi->sample_retry--;
|
||||||
+ mi->sample_tries++;
|
+ mi->sample_tries++;
|
||||||
|
+ mi->sample_wait = 1;
|
||||||
+ }
|
+ }
|
||||||
minstrel_next_sample_idx(mi);
|
minstrel_next_sample_idx(mi);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/net/mac80211/rc80211_minstrel_ht.c
|
||||||
|
+++ b/net/mac80211/rc80211_minstrel_ht.c
|
||||||
|
@@ -408,7 +408,7 @@ minstrel_ht_tx_status(void *priv, struct
|
||||||
|
mi->ampdu_len += info->status.ampdu_len;
|
||||||
|
|
||||||
|
if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) {
|
||||||
|
- mi->sample_wait = 4 + 2 * MINSTREL_TRUNC(mi->avg_ampdu_len);
|
||||||
|
+ mi->sample_wait = 8 + MINSTREL_TRUNC(mi->avg_ampdu_len);
|
||||||
|
mi->sample_tries = 3;
|
||||||
|
mi->sample_count--;
|
||||||
|
}
|
Loading…
Reference in New Issue