Lines Matching defs:rate

148 	uint8_t rate;
184 /* Initial rate - lowest */
185 rate = rs->rs_rates[0];
187 /* XXX clear the basic rate flag if it's not 11n */
189 rate &= IEEE80211_RATE_VAL;
191 /* pick initial rate from the rateset - HT or otherwise */
203 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
205 /* if the rate is an 11n rate, ensure the MCS bit is set */
207 rate |= IEEE80211_RATE_MCS;
209 /* Assign initial rate from the rateset */
210 ni->ni_txrate = rate;
213 /* XXX TODO: we really need a rate-to-string method */
214 /* XXX TODO: non-11n rate should be divided by two.. */
216 "AMRR: nrates=%d, initial rate %s%d",
219 rate & IEEE80211_RATE_VAL);
245 /* XXX TODO: we really need a rate-to-string method */
246 /* XXX TODO: non-11n rate should be divided by two.. */
248 "AMRR: current rate %d, txcnt=%d, retrycnt=%d",
268 /* XXX TODO: we really need a rate-to-string method */
269 /* XXX TODO: non-11n rate should be divided by two.. */
271 "AMRR increasing rate %d (txcnt=%d retrycnt=%d)",
291 /* XXX TODO: we really need a rate-to-string method */
292 /* XXX TODO: non-11n rate should be divided by two.. */
294 "AMRR decreasing rate %d (txcnt=%d retrycnt=%d)",
309 * Return the rate index to use in sending a data frame.
311 * If the rate changes we also update ni_txrate to match.
341 /* update public rate */
343 /* XXX strip basic rate flag from txrate, if non-11n */
463 int rate;
468 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
469 sbuf_printf(s, "rate: MCS %d\n", rate);
472 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL;
473 sbuf_printf(s, "rate: %d Mbit\n", rate / 2);