Lines Matching defs:rate

55 		uint32_t	rateKbps;	/* transfer rate in kbs */
57 * preamble in CCK rate code */
61 * rate; used for dur. calcs */
69 uint32_t frameLen, uint16_t rate, int isShortPreamble);
220 * Setup a rate table's reverse lookup table and fill in
247 * Map w/o basic rate bit too.
254 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s
257 * 2Mb/s rate which will work but is suboptimal
259 * NB: Control rate is always less than or equal to the
260 * current rate, so control rate's reverse lookup entry
273 /* Setup all rate tables */
330 * using the specified rate, phy, and short preamble setting.
335 uint32_t frameLen, uint16_t rate, int isShortPreamble)
337 uint8_t rix = rt->rateCodeToIndex[rate];
341 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate));
357 KASSERT(bitsPerSymbol != 0, ("full rate bps"));
367 KASSERT(bitsPerSymbol != 0, ("1/4 rate bps"));
377 KASSERT(bitsPerSymbol != 0, ("1/2 rate bps"));
396 panic("%s: unknown phy %u (rate %u)\n", __func__,
397 rt->info[rix].phy, rate);
405 uint32_t frameLen, uint16_t rate,
418 KASSERT(rate & IEEE80211_RATE_MCS, ("not mcs %d", rate));
419 KASSERT((rate &~ IEEE80211_RATE_MCS) < 16, ("bad mcs 0x%x", rate));
422 bitsPerSymbol = ht40_bps[rate & 0xf];
424 bitsPerSymbol = ht20_bps[rate & 0xf];
463 srate(int rate)
466 if (rate & 1)
467 snprintf(buf, sizeof(buf), "%u.5", rate/2);
469 snprintf(buf, sizeof(buf), "%u", rate/2);
485 "rate %s, ignored",
496 fprintf(stderr, "usage: %s [-a] [-l framelen] [-m mode] [-r rate] [-s]\n",
508 fprintf(stderr, "-r rate IEEE rate code (default 54)\n");
519 uint16_t rate;
534 rate = 2*54;
549 rate = (int) 2*frate;
563 rix = rt->rateCodeToIndex[rate];
565 errx(-1, "rate %s not valid for mode %s", srate(rate), mode);
568 time = ieee80211_compute_duration(rt, frameLen, rate, isShort);
570 time, frameLen, srate(rate),
574 rate = rt->info[rix].dot11Rate &~ IEEE80211_RATE_BASIC;
576 time = ieee80211_compute_duration(rt, frameLen, rate,
579 time, frameLen, srate(rate),