Lines Matching defs:rate

349 	IWN_DEBUG_TXRATE	= 0x00002000,	/* TX rate debugging */
2199 rate2plcp(int rate)
2201 switch (rate & 0xff) {
2219 * Calculate the required PLCP value from the given rate,
2222 * This will take the node configuration (eg 11n, rate table
2227 uint8_t rate)
2240 * If it's an MCS rate, let's set the plcp correctly
2246 * MCS 0 -> MCS 31, then set the "I'm an MCS rate!"
2249 plcp = RV(rate) | IWN_RFLAG_MCS;
2270 * If it's a two stream rate, enable TX on both
2275 if (rate > 0x87)
2284 plcp = rate2plcp(rate);
2294 rate & IEEE80211_RATE_VAL);
2303 DPRINTF(sc, IWN_DEBUG_TXRATE, "%s: rate=0x%02x, plcp=0x%08x\n",
2305 rate,
2324 /* NB: only the fixed rate can change and that doesn't need a reset */
2576 switch (stat->rate) {
2591 /* Unknown rate: should not happen. */
2853 "qid %d idx %d retries %d nkill %d rate %x duration %d status %x\n",
2855 stat->btkillcnt, stat->rate, le16toh(stat->duration),
2880 "qid %d idx %d retries %d nkill %d rate %x duration %d status %x\n",
2882 stat->btkillcnt, stat->rate, le16toh(stat->duration),
2926 * Update rate control statistics for the node.
3565 int ac, i, totlen, error, pad, nsegs = 0, rate;
3601 /* Choose a TX rate index. */
3604 rate = tp->mgmtrate;
3606 rate = tp->mcastrate;
3608 rate = tp->ucastrate;
3612 rate = ni->ni_txrate;
3615 rate & IEEE80211_RATE_VAL);
3634 tap->wt_rate = rate;
3721 tx->rate = iwn_rate_to_plcp(sc, ni, rate);
3727 tx->rate |= htole32(IWN_RFLAG_ANT(txant));
3837 int ac, totlen, error, pad, nsegs = 0, i, rate;
3854 /* Choose a TX rate index. */
3855 rate = params->ibp_rate0;
3857 rate & IEEE80211_RATE_VAL);
3859 /* XXX fall back to mcast/mgmt rate? */
3922 tap->wt_rate = rate;
3935 tx->rate = htole32(rate2plcp(rate));
3938 tx->rate |= htole32(IWN_RFLAG_CCK);
3943 tx->rate |= htole32(IWN_RFLAG_ANT(txant));
4299 int i, rate, txrate;
4314 /* Start at highest available bit-rate. */
4323 rate = IEEE80211_RATE_MCS | txrate;
4325 rate = RV(rs->rs_rates[txrate]);
4327 /* Do rate -> PLCP config mapping */
4328 plcp = iwn_rate_to_plcp(sc, ni, rate);
4336 /* Next retry at immediate lower bit-rate. */
4383 /* Use lowest mandatory bit-rate. */
4389 /* Use same bit-rate for all TX retries. */
4524 * Set TX power for current channel (each rate has its own power settings).
4634 /* Adjust TX power based on rate. */
4664 "%s: Tx chain %d, rate idx %d: power=%d\n",
5580 tx->rate = htole32(0xd);
5586 tx->rate = htole32(0xd);
5589 tx->rate = htole32(10 | IWN_RFLAG_CCK);
5595 tx->rate |= htole32(IWN_RFLAG_ANT(txant));
5831 /* Fake a join to initialize the TX rate. */