Lines Matching defs:rate
1218 tap->wr_rate = ieee80211_plcp2rate(desc->rate,
1414 rt2560_plcp_signal(int rate)
1416 switch (rate) {
1433 return 0xff; /* XXX unsupported/unknown rate */
1438 uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr)
1455 desc->plcp_signal = rt2560_plcp_signal(rate);
1459 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) {
1466 plcp_length = (16 * len + rate - 1) / rate;
1467 if (rate == 22) {
1475 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
1493 int nsegs, rate, error;
1498 /* XXX maybe a separate beacon rate? */
1499 rate = vap->iv_txparms[ieee80211_chan2mode(ni->ni_chan)].mgmtrate;
1514 tap->wt_rate = rate;
1524 RT2560_TX_TIMESTAMP, m0->m_pkthdr.len, rate, 0, segs->ds_addr);
1526 DPRINTFN(sc, 10, "sending beacon frame len=%u idx=%u rate=%u\n",
1527 m0->m_pkthdr.len, sc->bcnq.cur, rate);
1551 int nsegs, rate, error;
1556 rate = vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)].mgmtrate;
1581 tap->wt_rate = rate;
1598 rate, ic->ic_flags & IEEE80211_F_SHPREAMBLE);
1609 rt2560_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate, 0,
1616 DPRINTFN(sc, 10, "sending mgt frame len=%u idx=%u rate=%u\n",
1617 m0->m_pkthdr.len, sc->prioq.cur, rate);
1629 const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate)
1647 protrate = ieee80211_ctl_rate(ic->ic_rt, rate);
1648 ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
1651 dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
1652 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1656 dur += ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1706 int nsegs, rate, error;
1711 rate = params->ibp_rate0;
1712 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
1713 /* XXX fall back to mcast/mgmt rate? */
1725 rate);
1746 tap->wt_rate = rate;
1757 rate, (params->ibp_flags & IEEE80211_BPF_CRYPTO) != 0,
1764 DPRINTFN(sc, 10, "sending raw frame len=%u idx=%u rate=%u\n",
1765 m0->m_pkthdr.len, sc->prioq.cur, rate);
1790 int nsegs, rate, error;
1796 rate = tp->mcastrate;
1798 rate = tp->mgmtrate;
1800 rate = tp->ucastrate;
1803 rate = ni->ni_txrate;
1823 ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM)
1826 error = rt2560_sendprot(sc, m0, ni, prot, rate);
1873 tap->wt_rate = rate;
1882 /* remember link conditions for rate adaptation algorithm */
1894 rate, ic->ic_flags & IEEE80211_F_SHPREAMBLE);
1898 rt2560_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate, 1,
1905 DPRINTFN(sc, 10, "sending data frame len=%u idx=%u rate=%u\n",
1906 m0->m_pkthdr.len, sc->txq.cur_encrypt, rate);
2364 uint8_t rate;
2368 rate = rs->rs_rates[i];
2370 if (!(rate & IEEE80211_RATE_BASIC))
2373 mask |= 1 << ieee80211_legacy_rate_lookup(ic->ic_rt, RV(rate));
2378 DPRINTF(sc, "Setting basic rate mask to 0x%x\n", mask);
2657 /* set basic rate set (will be updated later) */