Lines Matching refs:rate

1811 	/* NB: only the fixed rate can change and that doesn't need a reset */
2607 int buflen, wh_ofs, hdr_extra, rssi, noise, type, rate;
2644 rate = bwi_plcp2rate(plcp, IEEE80211_T_OFDM);
2646 rate = bwi_plcp2rate(plcp, IEEE80211_T_CCK);
2650 bwi_rx_radiotap(sc, m, hdr, &plcp, rate, rssi, noise);
2665 sc->sc_rx_rate = rate;
2855 bwi_ofdm_plcp_header(uint32_t *plcp0, int pkt_len, uint8_t rate)
2859 plcp = __SHIFTIN(ieee80211_rate2plcp(rate, IEEE80211_T_OFDM),
2867 uint8_t rate)
2872 len = howmany(pkt_bitlen * 2, rate);
2875 if (rate == (11 * 2)) {
2880 * if TX rate is 11Mbytes/s
2887 plcp->i_signal = ieee80211_rate2plcp(rate, IEEE80211_T_CCK);
2895 void *plcp, int pkt_len, uint8_t rate)
2902 modtype = ieee80211_rate2phytype(rt, rate);
2904 bwi_ofdm_plcp_header(plcp, pkt_len, rate);
2906 bwi_ds_plcp_header(plcp, pkt_len, rate);
2924 uint8_t rate, rate_fb;
2946 * Find TX rate
2950 rate = rate_fb = tp->mgmtrate;
2952 rate = rate_fb = tp->mcastrate;
2954 rate = rate_fb = tp->ucastrate;
2957 rate = ni->ni_txrate;
2963 rate_fb = rate;
2966 tb->tb_rate[0] = rate;
2968 sc->sc_tx_rate = rate;
2977 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_DS &&
2979 rate != (1 * 2)) {
2982 sc->sc_tx_th.wt_rate = rate;
3006 dur = ieee80211_ack_duration(sc->sc_rates, rate,
3015 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3020 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM)
3022 else if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) && rate != (2 * 1))
3115 uint8_t rate, rate_fb;
3132 * Find TX rate
3134 rate = params->ibp_rate0;
3135 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
3136 /* XXX fall back to mcast/mgmt rate? */
3148 rate_fb = rate;
3149 tb->tb_rate[0] = rate;
3151 sc->sc_tx_rate = rate;
3163 sc->sc_tx_th.wt_rate = rate;
3197 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3202 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM) {
3343 /* NB: update rate control only for unicast frames */
3347 * generic AMRR code only understands one tx rate
3767 struct bwi_rxbuf_hdr *hdr, const void *plcp, int rate, int rssi, int noise)
3780 sc->sc_rx_th.wr_rate = rate;
3919 int rate;
3934 rate = sc->sc_rx_rate;
3937 rate = sc->sc_tx_rate;
3940 rate = 0;
3946 bwi_led_blink_start(sc, bwi_led_duration[rate].on_dur,
3947 bwi_led_duration[rate].off_dur);