Lines Matching defs:rate

466 	uint8_t		rate;
1577 * Used to adjust per-rate Tx power registers.
1876 /* read Tx power compensation for each Tx rate */
2002 uint8_t rate, ridx;
2018 rate = ic->ic_sup_rates[ic->ic_curmode].
2021 if (rt2860_rates[ridx].rate == rate)
2026 DPRINTF("rate=%d, fix_ridx=%d\n", rate, rn->fix_ridx);
2148 /* enable automatic rate adaptation */
2578 * Check if there were retries, ie if the Tx success rate is
2579 * different from the requested rate. Note that it works only
2580 * because we do not allow rate fallback from OFDM to CCK.
2679 uint8_t rate;
2712 rate = rs->rs_rates[i] & IEEE80211_RATE_VAL;
2713 /* convert 802.11 rate to hardware rate index */
2715 if (rt2860_rates[ridx].rate == rate)
2718 /* determine rate of control response frames */
2728 /* no basic rate found, use mandatory one */
2731 DPRINTF("rate=0x%02x ridx=%d ctl_ridx=%d\n",
2734 rate = vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)].mgmtrate;
2736 if (rt2860_rates[ridx].rate == rate)
2739 DPRINTF("rate=%d, mgmt_ridx=%d\n", rate, rn->mgt_ridx);
3116 tap->wt_rate = rt2860_rates[data->ridx].rate;
3229 /* get MCS code from rate index */
3338 /* pickup a rate index */
3440 DPRINTFN(8, "sending data frame len=%d rate=%d qid=%d\n",
3442 sizeof(struct rt2860_txwi)), rt2860_rates[ridx].rate, qid);
3477 dur = ieee80211_ack_duration(ic->ic_rt, rt2860_rates[ridx].rate,
3505 DPRINTFN(10, "sending mgt frame len=%d rate=%d\n", m->m_pkthdr.len +
3507 rt2860_rates[ridx].rate);
3518 const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate)
3545 protrate = ieee80211_ctl_rate(ic->ic_rt, rate);
3546 ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
3549 dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
3550 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
3562 dur += ieee80211_ack_duration(ic->ic_rt, rate, isshort);
3590 if (rt2860_rates[ridx].rate == protrate)
3596 DPRINTFN(1, "sending prot len=%u rate=%u\n",
3597 m->m_pkthdr.len, rate);
3617 uint8_t rate;
3629 rate = params->ibp_rate0;
3630 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
3641 rate);
3670 if (rt2860_rates[ridx].rate == rate)
3676 DPRINTFN(10, "sending raw frame len=%u rate=%u\n",
3677 m->m_pkthdr.len, rate);
4965 /* send beacons at the lowest available rate */
5004 /* setup protection frame rate (MCS code) */