Lines Matching defs:rate

1837 	/* NB: only the fixed rate can change and that doesn't need a reset */
2634 int buflen, wh_ofs, hdr_extra, rssi, noise, type, rate;
2671 rate = bwi_plcp2rate(plcp, IEEE80211_T_OFDM);
2673 rate = bwi_plcp2rate(plcp, IEEE80211_T_CCK);
2677 bwi_rx_radiotap(sc, m, hdr, &plcp, rate, rssi, noise);
2692 sc->sc_rx_rate = rate;
2882 bwi_ofdm_plcp_header(uint32_t *plcp0, int pkt_len, uint8_t rate)
2886 plcp = __SHIFTIN(ieee80211_rate2plcp(rate, IEEE80211_T_OFDM),
2894 uint8_t rate)
2899 len = howmany(pkt_bitlen * 2, rate);
2902 if (rate == (11 * 2)) {
2907 * if TX rate is 11Mbytes/s
2914 plcp->i_signal = ieee80211_rate2plcp(rate, IEEE80211_T_CCK);
2922 void *plcp, int pkt_len, uint8_t rate)
2929 modtype = ieee80211_rate2phytype(rt, rate);
2931 bwi_ofdm_plcp_header(plcp, pkt_len, rate);
2933 bwi_ds_plcp_header(plcp, pkt_len, rate);
2952 uint8_t rate, rate_fb;
2974 * Find TX rate
2978 rate = rate_fb = tp->mgmtrate;
2980 rate = rate_fb = tp->mcastrate;
2982 rate = rate_fb = tp->ucastrate;
2985 rate = ni->ni_txrate;
2991 rate_fb = rate;
2994 tb->tb_rate[0] = rate;
2996 sc->sc_tx_rate = rate;
3005 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_DS &&
3007 rate != (1 * 2)) {
3010 sc->sc_tx_th.wt_rate = rate;
3033 dur = ieee80211_ack_duration(sc->sc_rates, rate,
3042 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3047 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM)
3049 else if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) && rate != (2 * 1))
3142 uint8_t rate, rate_fb;
3159 * Find TX rate
3161 rate = params->ibp_rate0;
3162 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
3163 /* XXX fall back to mcast/mgmt rate? */
3175 rate_fb = rate;
3176 tb->tb_rate[0] = rate;
3178 sc->sc_tx_rate = rate;
3190 sc->sc_tx_th.wt_rate = rate;
3223 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3228 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM) {
3371 /* NB: update rate control only for unicast frames */
3375 * generic AMRR code only understands one tx rate
3813 struct bwi_rxbuf_hdr *hdr, const void *plcp, int rate, int rssi, int noise)
3826 sc->sc_rx_th.wr_rate = rate;
3970 int rate;
3985 rate = sc->sc_rx_rate;
3988 rate = sc->sc_tx_rate;
3991 rate = 0;
3997 bwi_led_blink_start(sc, bwi_led_duration[rate].on_dur,
3998 bwi_led_duration[rate].off_dur);