1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-04-21 09:13:19.000000000 +0200
4 +++ madwifi-trunk-r3314/ath/if_ath.c 2008-04-23 01:15:49.000000000 +0200
6 ath_hal_setupxtxdesc(sc->sc_ah, ds, mrr.rate1, mrr.retries1,
7 mrr.rate2, mrr.retries2,
8 mrr.rate3, mrr.retries3);
9 + bf->rcflags = mrr.privflags;
13 Index: madwifi-trunk-r3314/ath/if_athvar.h
14 ===================================================================
15 --- madwifi-trunk-r3314.orig/ath/if_athvar.h 2008-04-21 09:13:19.000000000 +0200
16 +++ madwifi-trunk-r3314/ath/if_athvar.h 2008-04-23 01:15:49.000000000 +0200
18 u_int16_t bf_flags; /* tx descriptor flags */
21 + unsigned int rcflags;
23 /* XXX: combine this with bf_skbaddr if it ever changes to accommodate
25 Index: madwifi-trunk-r3314/ath_rate/minstrel/minstrel.c
26 ===================================================================
27 --- madwifi-trunk-r3314.orig/ath_rate/minstrel/minstrel.c 2008-04-21 09:13:19.000000000 +0200
28 +++ madwifi-trunk-r3314/ath_rate/minstrel/minstrel.c 2008-04-23 01:15:50.000000000 +0200
30 if (sn->static_rate_ndx >= 0) {
31 ndx = sn->static_rate_ndx;
35 sn->random_n = (sn->a * sn->random_n) + sn->b;
36 offset = sn->random_n & 0xf;
37 - if ((((100 * sn->sample_count) / (sn->sample_count + sn->packet_count)) < ath_lookaround_rate) && (offset < 2)) {
38 + delta = (sn->packet_count * ath_lookaround_rate / 100) - sn->sample_count;
39 + if ((delta > 0) && (offset < 2)) {
42 if (sn->packet_count >= 10000) {
45 + } else if (delta > sn->num_rates * 2) {
46 + sn->sample_count += ((delta - sn->num_rates * 2) * ath_lookaround_rate) / 100;
49 /* Don't look for slowest rate (i.e. slowest
51 if (sn->num_rates <= 0)
54 + mrr->privflags = sn->is_sampling;
55 if (sn->is_sampling) {
57 - if (sn->rs_sample_rate_slower)
58 + if (sn->rs_sample_rate_slower) {
59 rc1 = sn->rs_sample_rate;
61 + if (sn->sample_count > 0)
64 rc1 = sn->max_tp_rate;
66 rc1 = sn->max_tp_rate2;
76 tries = tries - tries1;
77 Index: madwifi-trunk-r3314/net80211/ieee80211_rate.h
78 ===================================================================
79 --- madwifi-trunk-r3314.orig/net80211/ieee80211_rate.h 2008-04-21 09:11:19.000000000 +0200
80 +++ madwifi-trunk-r3314/net80211/ieee80211_rate.h 2008-04-21 09:13:19.000000000 +0200
88 struct ieee80211_rate_ops {