Lines Matching refs:rate

2606 		int buflen, wh_ofs, hdr_extra, rssi, noise, type, rate;
2643 rate = bwi_plcp2rate(plcp, IEEE80211_T_OFDM);
2645 rate = bwi_plcp2rate(plcp, IEEE80211_T_CCK);
2649 bwi_rx_radiotap(sc, m, hdr, &plcp, rate, rssi, noise);
2664 sc->sc_rx_rate = rate;
2854 bwi_ofdm_plcp_header(uint32_t *plcp0, int pkt_len, uint8_t rate)
2858 plcp = __SHIFTIN(ieee80211_rate2plcp(rate, IEEE80211_T_OFDM),
2866 uint8_t rate)
2871 len = howmany(pkt_bitlen * 2, rate);
2874 if (rate == (11 * 2)) {
2879 * if TX rate is 11Mbytes/s
2886 plcp->i_signal = ieee80211_rate2plcp(rate, IEEE80211_T_CCK);
2894 void *plcp, int pkt_len, uint8_t rate)
2901 modtype = ieee80211_rate2phytype(rt, rate);
2903 bwi_ofdm_plcp_header(plcp, pkt_len, rate);
2905 bwi_ds_plcp_header(plcp, pkt_len, rate);
2923 uint8_t rate, rate_fb;
2945 * Find TX rate
2948 rate = rate_fb = tp->mgmtrate;
2950 rate = rate_fb = tp->mcastrate;
2952 rate = rate_fb = tp->ucastrate;
2955 rate = ni->ni_txrate;
2961 rate_fb = rate;
2964 tb->tb_rate[0] = rate;
2966 sc->sc_tx_rate = rate;
2975 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_DS &&
2977 rate != (1 * 2)) {
2980 sc->sc_tx_th.wt_rate = rate;
3004 dur = ieee80211_ack_duration(sc->sc_rates, rate,
3013 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3018 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM)
3020 else if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) && rate != (2 * 1))
3113 uint8_t rate, rate_fb;
3130 * Find TX rate
3132 rate = params->ibp_rate0;
3133 if (!ieee80211_isratevalid(ic->ic_rt, rate)) {
3134 /* XXX fall back to mcast/mgmt rate? */
3146 rate_fb = rate;
3147 tb->tb_rate[0] = rate;
3149 sc->sc_tx_rate = rate;
3161 sc->sc_tx_th.wt_rate = rate;
3195 bwi_plcp_header(sc->sc_rates, hdr->txh_plcp, pkt_len, rate);
3200 if (ieee80211_rate2phytype(sc->sc_rates, rate) == IEEE80211_T_OFDM) {
3340 /* NB: update rate control only for unicast frames */
3344 * generic AMRR code only understands one tx rate
3770 struct bwi_rxbuf_hdr *hdr, const void *plcp, int rate, int rssi, int noise)
3783 sc->sc_rx_th.wr_rate = rate;
3922 int rate;
3937 rate = sc->sc_rx_rate;
3940 rate = sc->sc_tx_rate;
3943 rate = 0;
3949 bwi_led_blink_start(sc, bwi_led_duration[rate].on_dur,
3950 bwi_led_duration[rate].off_dur);