Lines Matching refs:rate

170 	uint8_t rate;
206 /* Initial rate - lowest */
207 rate = rs->rs_rates[0];
209 /* XXX clear the basic rate flag if it's not 11n */
211 rate &= IEEE80211_RATE_VAL;
213 /* pick initial rate from the rateset - HT or otherwise */
225 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
227 /* if the rate is an 11n rate, ensure the MCS bit is set */
229 rate |= IEEE80211_RATE_MCS;
231 /* Assign initial rate from the rateset */
232 ni->ni_txrate = rate;
235 /* XXX TODO: we really need a rate-to-string method */
236 /* XXX TODO: non-11n rate should be divided by two.. */
238 "AMRR: nrates=%d, initial rate %s%d",
241 rate & IEEE80211_RATE_VAL);
267 /* XXX TODO: we really need a rate-to-string method */
268 /* XXX TODO: non-11n rate should be divided by two.. */
270 "AMRR: current rate %d, txcnt=%d, retrycnt=%d",
290 /* XXX TODO: we really need a rate-to-string method */
291 /* XXX TODO: non-11n rate should be divided by two.. */
293 "AMRR increasing rate %d (txcnt=%d retrycnt=%d)",
313 /* XXX TODO: we really need a rate-to-string method */
314 /* XXX TODO: non-11n rate should be divided by two.. */
316 "AMRR decreasing rate %d (txcnt=%d retrycnt=%d)",
331 * Return the rate index to use in sending a data frame.
333 * If the rate changes we also update ni_txrate to match.
363 /* update public rate */
365 /* XXX strip basic rate flag from txrate, if non-11n */
462 int rate;
474 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
475 sbuf_printf(s, "rate: MCS %d\n", rate);
478 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
479 sbuf_printf(s, "rate: %d Mbit\n", rate / 2);