Lines Matching defs:rate

762 		/* enable automatic rate adaptation */
825 tap->wt_rate = data->rate;
938 tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate,
985 rum_plcp_signal(int rate)
987 switch (rate) {
1004 return 0xff; /* XXX unsupported/unknown rate */
1009 uint32_t flags, uint16_t xflags, int len, int rate)
1026 desc->plcp_signal = rum_plcp_signal(rate);
1030 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) {
1037 if (rate == 0)
1038 rate = 2; /* avoid division by zero */
1039 plcp_length = (16 * len + rate - 1) / rate;
1040 if (rate == 22) {
1048 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
1055 const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate)
1071 protrate = ieee80211_ctl_rate(ic->ic_rt, rate);
1072 ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
1075 dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
1076 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1080 dur += ieee80211_ack_duration(ic->ic_rt, rate, isshort);
1096 data->rate = protrate;
1152 data->rate = tp->mgmtrate;
1156 DPRINTFN(10, "sending mgt frame len=%d rate=%d\n",
1172 int rate, error;
1177 rate = params->ibp_rate0;
1178 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
1189 rate);
1203 data->rate = rate;
1206 rum_setup_tx_desc(sc, &data->desc, flags, 0, m0->m_pkthdr.len, rate);
1208 DPRINTFN(10, "sending raw frame len=%u rate=%u\n",
1209 m0->m_pkthdr.len, rate);
1229 int error, rate;
1237 rate = tp->mcastrate;
1239 rate = tp->ucastrate;
1241 rate = ni->ni_txrate;
1259 ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM)
1262 error = rum_sendprot(sc, m0, ni, prot, rate);
1277 data->rate = rate;
1283 dur = ieee80211_ack_duration(ic->ic_rt, rate,
1288 rum_setup_tx_desc(sc, &data->desc, flags, 0, m0->m_pkthdr.len, rate);
1290 DPRINTFN(10, "sending frame len=%d rate=%d\n",
1291 m0->m_pkthdr.len + (int)RT2573_TX_DESC_SIZE, rate);
1566 * Enable multi-rate retries for frames sent at OFDM rates.
1608 /* update basic rate set */