Lines Matching refs:rate

168 	uint8_t rate;
204 /* Initial rate - lowest */
205 rate = rs->rs_rates[0];
207 /* XXX clear the basic rate flag if it's not 11n */
209 rate &= IEEE80211_RATE_VAL;
211 /* pick initial rate from the rateset - HT or otherwise */
223 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
225 /* if the rate is an 11n rate, ensure the MCS bit is set */
227 rate |= IEEE80211_RATE_MCS;
229 /* Assign initial rate from the rateset */
230 ni->ni_txrate = rate;
233 /* XXX TODO: we really need a rate-to-string method */
234 /* XXX TODO: non-11n rate should be divided by two.. */
236 "AMRR: nrates=%d, initial rate %s%d",
239 rate & IEEE80211_RATE_VAL);
265 /* XXX TODO: we really need a rate-to-string method */
266 /* XXX TODO: non-11n rate should be divided by two.. */
268 "AMRR: current rate %d, txcnt=%d, retrycnt=%d",
288 /* XXX TODO: we really need a rate-to-string method */
289 /* XXX TODO: non-11n rate should be divided by two.. */
291 "AMRR increasing rate %d (txcnt=%d retrycnt=%d)",
311 /* XXX TODO: we really need a rate-to-string method */
312 /* XXX TODO: non-11n rate should be divided by two.. */
314 "AMRR decreasing rate %d (txcnt=%d retrycnt=%d)",
329 * Return the rate index to use in sending a data frame.
331 * If the rate changes we also update ni_txrate to match.
361 /* update public rate */
363 /* XXX strip basic rate flag from txrate, if non-11n */
483 int rate;
488 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
489 sbuf_printf(s, "rate: MCS %d\n", rate);
492 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
493 sbuf_printf(s, "rate: %d Mbit\n", rate / 2);