4 ath_hal_setupxtxdesc(sc->sc_ah, ds, mrr.rate1, mrr.retries1,
5 mrr.rate2, mrr.retries2,
6 mrr.rate3, mrr.retries3);
7 + bf->rcflags = mrr.privflags;
14 u_int16_t bf_flags; /* tx descriptor flags */
17 + unsigned int rcflags;
19 /* XXX: combine this with bf_skbaddr if it ever changes to accommodate
21 --- a/ath_rate/minstrel/minstrel.c
22 +++ b/ath_rate/minstrel/minstrel.c
24 if (sn->static_rate_ndx >= 0) {
25 ndx = sn->static_rate_ndx;
30 sn->random_n = (sn->a * sn->random_n) + sn->b;
31 offset = sn->random_n & 0xf;
33 - if ((((100 * sn->sample_count) / sn->packet_count) <
34 - ath_lookaround_rate) &&
36 + delta = (sn->packet_count * ath_lookaround_rate / 100) - sn->sample_count;
37 + if ((delta > 0) && (offset < 2)) {
40 if (sn->packet_count >= 10000) {
43 + } else if (delta > sn->num_rates * 2) {
44 + sn->sample_count += ((delta - sn->num_rates * 2) * ath_lookaround_rate) / 100;
47 /* Don't look for slowest rate (i.e. slowest
49 if (sn->num_rates <= 0)
52 + mrr->privflags = sn->is_sampling;
53 if (sn->is_sampling) {
55 - if (sn->rs_sample_rate_slower)
56 + if (sn->rs_sample_rate_slower) {
57 rc1 = sn->rs_sample_rate;
59 + if (sn->sample_count > 0)
62 rc1 = sn->max_tp_rate;
64 rc1 = sn->max_tp_rate2;
74 tries = tries - tries1;
75 --- a/net80211/ieee80211_rate.h
76 +++ b/net80211/ieee80211_rate.h
84 struct ieee80211_rate_ops {