Lines Matching refs:rate
55 #include "rate.h"
61 /* convert mac80211 rate index to local array index */
118 ratetbl->rate[offset].idx = r->rix;
119 ratetbl->rate[offset].count = r->adjusted_retry_count;
120 ratetbl->rate[offset].count_cts = r->retry_count_cts;
121 ratetbl->rate[offset].count_rts = r->stats.retry_count_rtscts;
147 /* Use lowest rate last */
148 ratetbl->rate[i].idx = mi->lowest_rix;
149 ratetbl->rate[i].count = mp->max_retry;
150 ratetbl->rate[i].count_cts = mp->max_retry;
151 ratetbl->rate[i].count_rts = mp->max_retry;
157 * Recalculate statistics and counters of a given rate
206 /* Update statistics of success probability per rate */
226 /* To determine the most robust rate (max_prob_rate) used at
229 * choose the maximum throughput rate as max_prob_rate
230 * (2) if all success probabilities < 95%, the rate with
244 /* Assign the new rate set */
333 struct ieee80211_tx_rate *rate = &info->control.rates[0];
341 /* check multi-rate-retry capabilities & adjust lookaround_rate */
376 /* With multi-rate retry, not every planned sample
388 /* get next random rate sample */
394 * rate sampling method should be used.
407 /* If we're not using MRR and the sampling rate already
416 rate->idx = mi->r[ndx].rix;
417 rate->count = minstrel_get_retry_count(&mi->r[ndx], info);
425 struct ieee80211_rate *rate,
428 int erp = !!(rate->flags & IEEE80211_RATE_ERP_G);
432 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,
435 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,