Lines Matching defs:rate
888 /* retrieve rate control algorithm context */
1092 tap->wr_rate = ieee80211_plcp2rate(desc->rate,
1215 rt2661_plcp_signal(int rate)
1217 switch (rate) {
1234 return 0xff; /* XXX unsupported/unknown rate */
1239 uint32_t flags, uint16_t xflags, int len, int rate,
1268 desc->plcp_signal = rt2661_plcp_signal(rate);
1272 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) {
1279 plcp_length = (16 * len + rate - 1) / rate;
1280 if (rate == 22) {
1288 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
1312 int nsegs, rate, error;
1317 rate = vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)].mgmtrate;
1342 tap->wt_rate = rate;
1358 rate, ic->ic_flags & IEEE80211_F_SHPREAMBLE);
1369 m0->m_pkthdr.len, rate, segs, nsegs, RT2661_QID_MGT);
1375 DPRINTFN(sc, 10, "sending mgt frame len=%u idx=%u rate=%u\n",
1376 m0->m_pkthdr.len, sc->mgtq.cur, rate);
1388 const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate)
1407 protrate = ieee80211_ctl_rate(ic->ic_rt, rate);
1408 ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
1411 dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
1412 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1416 dur += ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1474 int error, nsegs, rate, noack = 0;
1480 rate = tp->mcastrate;
1482 rate = tp->mgmtrate;
1484 rate = tp->ucastrate;
1487 rate = ni->ni_txrate;
1489 rate &= IEEE80211_RATE_VAL;
1513 ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM)
1516 error = rt2661_sendprot(sc, ac, m0, ni, prot, rate);
1563 tap->wt_rate = rate;
1571 /* remember link conditions for rate adaptation algorithm */
1583 rate, ic->ic_flags & IEEE80211_F_SHPREAMBLE);
1587 rt2661_setup_tx_desc(sc, desc, flags, 0, m0->m_pkthdr.len, rate, segs,
1593 DPRINTFN(sc, 10, "sending data frame len=%u idx=%u rate=%u\n",
1594 m0->m_pkthdr.len, txq->cur, rate);
1873 * Enable multi-rate retries for frames sent at OFDM rates.
1917 uint8_t rate;
1921 rate = rs->rs_rates[i];
1923 if (!(rate & IEEE80211_RATE_BASIC))
1926 mask |= 1 << ieee80211_legacy_rate_lookup(ic->ic_rt, RV(rate));
1931 DPRINTF(sc, "Setting basic rate mask to 0x%x\n", mask);
2694 int rate;
2702 /* send beacons at the lowest available rate */
2703 rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_bsschan) ? 12 : 2;
2706 m0->m_pkthdr.len, rate, NULL, 0, RT2661_QID_MGT);