Lines Matching defs:rate
768 /* enable automatic rate adaptation */
833 tap->wt_rate = data->rate;
942 tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate,
990 ural_plcp_signal(int rate)
992 switch (rate) {
1009 return 0xff; /* XXX unsupported/unknown rate */
1014 uint32_t flags, int len, int rate)
1029 desc->plcp_signal = ural_plcp_signal(rate);
1033 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) {
1040 if (rate == 0)
1041 rate = 2; /* avoid division by zero */
1042 plcp_length = (16 * len + rate - 1) / rate;
1043 if (rate == 22) {
1051 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
1088 data->rate = tp->mgmtrate;
1094 DPRINTFN(10, "sending beacon frame len=%u rate=%u\n",
1135 data->rate = tp->mgmtrate;
1155 DPRINTFN(10, "sending mgt frame len=%u rate=%u\n",
1166 const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate)
1181 protrate = ieee80211_ctl_rate(ic->ic_rt, rate);
1182 ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
1185 dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
1186 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1190 dur += ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1206 data->rate = protrate;
1223 int rate;
1228 rate = params->ibp_rate0;
1229 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
1240 rate);
1254 data->rate = rate;
1257 ural_setup_tx_desc(sc, &data->desc, flags, m0->m_pkthdr.len, rate);
1259 DPRINTFN(10, "sending raw frame len=%u rate=%u\n",
1260 m0->m_pkthdr.len, rate);
1279 int error, rate;
1287 rate = tp->mcastrate;
1289 rate = tp->ucastrate;
1291 rate = ni->ni_txrate;
1308 ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM)
1311 error = ural_sendprot(sc, m0, ni, prot, rate);
1326 data->rate = rate;
1332 dur = ieee80211_ack_duration(ic->ic_rt, rate,
1337 ural_setup_tx_desc(sc, &data->desc, flags, m0->m_pkthdr.len, rate);
1339 DPRINTFN(10, "sending data frame len=%u rate=%u\n",
1340 m0->m_pkthdr.len, rate);
1747 /* update basic rate set */
1861 /* XXX wrong, take from rate set */
1862 /* update basic rate set */
2101 /* set basic rate set (will be updated later) */