Lines Matching defs:rate
64 /* XXX the 11n and the basic rate flag are unfortunately overlapping. Grr. */
286 * Setup a rate table's reverse lookup table and fill in
310 * Map without the basic rate bit.
313 * rate bit is stripped here.
315 * For HT, use the MCS rate bit.
322 /* XXX assume the control rate is non-MCS? */
327 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s
330 * 2Mb/s rate which will work but is suboptimal
332 * NB: Control rate is always less than or equal to the
333 * current rate, so control rate's reverse lookup entry
345 /* Setup all rate tables */
396 panic("%s: no rate table for channel; freq %u flags 0x%x\n",
403 * Convert PLCP signal/rate field to 802.11 rate (.5Mbits/s)
406 * used to derive an 802.11 rate for constructing radiotap
441 * Covert 802.11 rate to PLCP signal.
444 ieee80211_rate2plcp(int rate, enum ieee80211_phytype type)
447 switch (rate) {
465 return 0; /* XXX unsupported/unknown rate */
494 * using the specified rate, phy, and short preamble setting.
499 uint32_t frameLen, uint16_t rate, int isShortPreamble)
501 uint8_t rix = rt->rateCodeToIndex[rate];
505 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate));
521 KASSERT(bitsPerSymbol != 0, ("full rate bps"));
531 KASSERT(bitsPerSymbol != 0, ("1/4 rate bps"));
541 KASSERT(bitsPerSymbol != 0, ("1/2 rate bps"));
560 panic("%s: unknown phy %u (rate %u)\n", __func__,
561 rt->info[rix].phy, rate);
597 ieee80211_compute_duration_ht(uint32_t frameLen, uint16_t rate,
602 KASSERT(rate & IEEE80211_RATE_MCS, ("not mcs %d", rate));
603 KASSERT((rate &~ IEEE80211_RATE_MCS) < 31, ("bad mcs 0x%x", rate));
606 bitsPerSymbol = ht40_bps[rate & 0x1f];
608 bitsPerSymbol = ht20_bps[rate & 0x1f];