Lines Matching defs:rate
34 * Atsushi Onoe's rate control algorithm.
73 * Default parameters for the rate control algorithm. These are
74 * all tunable with sysctls. The rate controller runs periodically
78 * it gives a "raise rate credit". If transmits look to not be working
80 * the transmit rate is raised. Various error conditions force the
81 * the transmit rate to be dropped.
87 * the transmit rate is increased.
91 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */
93 static int ath_rate_raise_threshold = 10; /* rate ctl raise threshold */
96 int rate);
130 * the returned rate with the relevant preamble rate flag.
191 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate)
199 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode));
202 "%s: set xmit rate to %dM", __func__,
204 (ni->ni_rates.rs_rates[rate] & IEEE80211_RATE_VAL) / 2 : 0);
207 * Before associating a node has no rate set setup
211 * lowest hardware rate.
215 on->on_rix = rate;
216 ni->ni_txrate = ni->ni_rates.rs_rates[rate] & IEEE80211_RATE_VAL;
224 * Hardware supports multi-rate retry; setup two
225 * step-down retry rates and make the lowest rate
230 on->on_tx_try0 = 1 + 3; /* 4 tries at rate 0 */
231 if (--rate >= 0) {
233 ni->ni_rates.rs_rates[rate]&IEEE80211_RATE_VAL];
240 if (--rate >= 0) {
242 ni->ni_rates.rs_rates[rate]&IEEE80211_RATE_VAL];
249 if (rate > 0) {
258 on->on_tx_try0 = ATH_TXMAXTRY; /* max tries at rate 0 */
273 * Set the starting transmit rate for a node.
285 * No fixed rate is requested. For 11b start with
286 * the highest negotiated rate; otherwise, for 11g
292 * Scan the negotiated rate set to find the
293 * closest rate.
295 /* NB: the rate set is assumed sorted */
301 * A fixed rate is to be used; ic_fixed_rate is the
302 * IEEE code for this rate (sans basic bit). Convert this
303 * to the index into the negotiated rate set for
304 * the node. We know the rate is there because the
305 * rate set is checked when the station associates.
307 /* NB: the rate set is assumed sorted */
313 * The selected rate may not be available due to races
315 * adhoc mode may not have any rate set so this lookup
323 * Examine and potentially adjust the transmit rate.
370 /* raise rate if we hit rate_raise_threshold */
400 "rate control: operation interval (ms)");
404 "rate control: retry threshold to credit rate raise (%%)");
407 "rate control: # good periods before raising rate");