Lines Matching full:rate
68 /* XXX the 11n and the basic rate flag are unfortunately overlapping. Grr. */
78 /* Preamble dot11Rate Rate */
91 /* Preamble dot11Rate Rate */
111 /* Preamble dot11Rate Rate */
127 /* Preamble dot11Rate Rate */
143 /* Preamble dot11Rate Rate */
159 /* Preamble dot11Rate Rate */
174 /* Preamble dot11Rate Rate */
190 /* Preamble dot11Rate Rate */
238 /* Preamble dot11Rate Rate */
290 * Setup a rate table's reverse lookup table and fill in
314 * Map without the basic rate bit. in ieee80211_setup_ratetable()
317 * rate bit is stripped here. in ieee80211_setup_ratetable()
319 * For HT, use the MCS rate bit. in ieee80211_setup_ratetable()
326 /* XXX assume the control rate is non-MCS? */ in ieee80211_setup_ratetable()
331 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s in ieee80211_setup_ratetable()
334 * 2Mb/s rate which will work but is suboptimal in ieee80211_setup_ratetable()
336 * NB: Control rate is always less than or equal to the in ieee80211_setup_ratetable()
337 * current rate, so control rate's reverse lookup entry in ieee80211_setup_ratetable()
349 /* Setup all rate tables */
400 panic("%s: no rate table for channel; freq %u flags 0x%x\n", in ieee80211_get_ratetable()
407 * Convert PLCP signal/rate field to 802.11 rate (.5Mbits/s)
410 * used to derive an 802.11 rate for constructing radiotap
445 * Covert 802.11 rate to PLCP signal.
448 ieee80211_rate2plcp(int rate, enum ieee80211_phytype type) in ieee80211_rate2plcp() argument
451 switch (rate) { in ieee80211_rate2plcp()
469 return 0; /* XXX unsupported/unknown rate */ in ieee80211_rate2plcp()
498 * using the specified rate, phy, and short preamble setting.
503 uint32_t frameLen, uint16_t rate, int isShortPreamble) in ieee80211_compute_duration() argument
505 uint8_t rix = rt->rateCodeToIndex[rate]; in ieee80211_compute_duration()
509 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_compute_duration()
525 KASSERT(bitsPerSymbol != 0, ("full rate bps")); in ieee80211_compute_duration()
535 KASSERT(bitsPerSymbol != 0, ("1/4 rate bps")); in ieee80211_compute_duration()
545 KASSERT(bitsPerSymbol != 0, ("1/2 rate bps")); in ieee80211_compute_duration()
564 panic("%s: unknown phy %u (rate %u)\n", __func__, in ieee80211_compute_duration()
565 rt->info[rix].phy, rate); in ieee80211_compute_duration()
595 ieee80211_compute_duration_ht(uint32_t frameLen, uint16_t rate, in ieee80211_compute_duration_ht() argument
600 KASSERT(rate & IEEE80211_RATE_MCS, ("not mcs %d", rate)); in ieee80211_compute_duration_ht()
601 KASSERT((rate &~ IEEE80211_RATE_MCS) < 31, ("bad mcs 0x%x", rate)); in ieee80211_compute_duration_ht()
604 bitsPerSymbol = ht40_bps[rate & 0x1f]; in ieee80211_compute_duration_ht()
606 bitsPerSymbol = ht20_bps[rate & 0x1f]; in ieee80211_compute_duration_ht()
632 * Not all MCS rate / channel widths are valid, as there needs
694 * @param mcs MCS rate, 0..9
713 int cod_n; /* Coding rate numerator */
714 int cod_d; /* Coding rate denominator */
738 * @brief Calculate the bitrate of the given VHT MCS rate.