Lines Matching refs:rate

969 /* XXX: This series will need adjustment for rate.
1017 /* XXX: This series will need adjustment for rate.
1042 /* XXX: This series will need adjustment for rate.
2711 rate2plcp(int rate)
2713 switch (rate & 0xff) {
2797 * Calculate the required PLCP value from the given rate,
2800 * This will take the node configuration (eg 11n, rate table
2805 uint8_t rate)
2812 * If it's an MCS rate, let's set the plcp correctly
2815 if (rate & IEEE80211_RATE_MCS) {
2818 * MCS 0 -> MCS 31, then set the "I'm an MCS rate!"
2821 plcp = IEEE80211_RV(rate) | IWN_RFLAG_MCS;
2842 * Ensure the selected rate matches the link quality
2845 if (rate > 0x8f)
2847 else if (rate > 0x87)
2856 plcp = rate2plcp(rate);
2866 rate & IEEE80211_RATE_VAL);
2876 DPRINTF(sc, IWN_DEBUG_TXRATE, "%s: rate=0x%02x, plcp=0x%08x\n",
2878 rate,
3147 uint32_t rate = le32toh(stat->rate);
3155 if (rate & IWN_RFLAG_MCS) {
3156 tap->wr_rate = rate & IWN_RFLAG_RATE_MCS;
3159 tap->wr_rate = plcp2rate(rate & IWN_RFLAG_RATE);
3289 * Yes, the rate control code doesn't know these are A-MPDU
3568 "qid %d idx %d RTS retries %d ACK retries %d nkill %d rate %x duration %d status %x\n",
3573 stat->rate, le16toh(stat->duration),
3593 "qid %d idx %d RTS retries %d ACK retries %d nkill %d rate %x duration %d status %x\n",
3598 stat->rate, le16toh(stat->duration),
3680 * Update rate control statistics for the node.
4438 * Check whether OFDM 11g protection will be enabled for the given rate.
4445 struct ieee80211vap *vap, uint8_t rate)
4464 * If it's an 11n rate - no protection.
4467 if (rate & IEEE80211_RATE_MCS) {
4472 * Do a rate table lookup. If the PHY is CCK,
4475 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_CCK)
4490 uint8_t rate)
4507 * Use the correct rate table.
4523 * rate, so we walk the rate table backwards.
4526 if (rate & IEEE80211_RATE_MCS)
4530 DPRINTF(sc, IWN_DEBUG_XMIT, "%s: idx %d: nr=%d, rate=0x%02x, rateentry=0x%02x\n",
4534 rate,
4538 if (cmp_rate == rate)
4561 int ac, totlen, rate;
4579 /* Choose a TX rate index. */
4583 rate = tp->mgmtrate;
4585 rate = tp->mcastrate;
4587 rate = tp->ucastrate;
4591 rate = ni->ni_txrate;
4626 tap->wt_rate = rate;
4653 } else if (iwn_check_rate_needs_protection(sc, vap, rate)) {
4658 } else if ((rate & IEEE80211_RATE_MCS) &&
4745 tx->linkq = iwn_tx_rate_to_linkq_offset(sc, ni, rate);
4753 tx->rate = iwn_rate_to_plcp(sc, ni, rate);
4770 int ac, rate;
4782 /* Choose a TX rate. */
4783 rate = params->ibp_rate0;
4809 tap->wt_rate = rate;
4841 tx->rate = iwn_rate_to_plcp(sc, ni, rate);
4947 __func__, ring->qid, ring->cur, totlen, nsegs, tx->rate);
5357 int i, rate, txrate;
5391 /* Start at highest available bit-rate. */
5404 * rate entries, just for now.
5410 rate = IEEE80211_RATE_MCS | rs->rs_rates[txrate];
5412 rate = IEEE80211_RV(rs->rs_rates[txrate]);
5414 /* Do rate -> PLCP config mapping */
5415 plcp = iwn_rate_to_plcp(sc, ni, rate);
5418 "%s: i=%d, txrate=%d, rate=0x%02x, plcp=0x%08x\n",
5422 rate,
5432 * _are_ doing a dual-stream rate, set mimo to idx+1 (ie,
5440 /* Next retry at immediate lower bit-rate. */
5494 /* Use lowest mandatory bit-rate. */
5495 /* XXX rate table lookup? */
5501 /* Use same bit-rate for all TX retries. */
5681 * Set TX power for current channel (each rate has its own power settings).
5791 /* Adjust TX power based on rate. */
5821 "%s: Tx chain %d, rate idx %d: power=%d\n",
7108 tx->rate = htole32(0xd);
7114 tx->rate = htole32(0xd);
7117 tx->rate = htole32(10 | IWN_RFLAG_CCK);
7123 tx->rate |= htole32(IWN_RFLAG_ANT(txant));
7388 /* Fake a join to initialize the TX rate. */