Lines Matching defs:rate
3443 bwn_rate_write(struct bwn_mac *mac, uint16_t rate, int ofdm)
3449 offset += (bwn_plcp_getofdm(rate) & 0x000f) * 2;
3452 offset += (bwn_plcp_getcck(rate) & 0x000f) * 2;
9262 bwn_hwrate2ieeerate(int rate)
9265 switch (rate) {
9307 int padding, rate, rssi = 0, noise = 0, type;
9351 rate = bwn_plcp_get_ofdmrate(mac, plcp,
9354 rate = bwn_plcp_get_cckrate(mac, plcp);
9355 if (rate == -1) {
9359 sc->sc_rx_rate = bwn_hwrate2ieeerate(rate);
9363 bwn_rx_radiotap(mac, m, rxhdr, plcp, rate, rssi, noise);
9561 bwn_ieeerate2hwrate(struct bwn_softc *sc, int rate)
9564 switch (rate) {
9593 device_printf(sc->sc_dev, "unsupported rate %d\n", rate);
9616 uint8_t rate, rate_fb;
9626 * Find TX rate
9630 rate = rate_fb = tp->mgmtrate;
9632 rate = rate_fb = tp->mcastrate;
9634 rate = rate_fb = tp->ucastrate;
9637 rate = ni->ni_txrate;
9643 rate_fb = rate;
9646 sc->sc_tx_rate = rate;
9648 rate = bwn_ieeerate2hwrate(sc, rate);
9651 txhdr->phyrate = (BWN_ISOFDMRATE(rate)) ? bwn_plcp_getofdm(rate) :
9652 bwn_plcp_getcck(rate);
9656 if ((rate_fb == rate) ||
9662 m->m_pkthdr.len, rate, isshort);
9668 m->m_pkthdr.len + IEEE80211_CRC_LEN, rate);
9675 phyctl |= (BWN_ISOFDMRATE(rate)) ? BWN_TX_PHY_ENC_OFDM :
9677 if (isshort && (rate == BWN_CCK_RATE_2MB || rate == BWN_CCK_RATE_5MB ||
9678 rate == BWN_CCK_RATE_11MB))
9712 /* XXX RTS rate is always 1MB??? */
9717 m->m_pkthdr.len, rate, isshort) +
9718 + ieee80211_ack_duration(ic->ic_rt, rate, isshort);
9736 protdur += ieee80211_ack_duration(ic->ic_rt, rate,
9786 (rate == BWN_CCK_RATE_2MB || rate == BWN_CCK_RATE_5MB ||
9787 rate == BWN_CCK_RATE_11MB))
9789 sc->sc_tx_th.wt_rate = rate;
9799 const uint8_t rate)
9804 if (BWN_ISOFDMRATE(rate)) {
9805 d = bwn_plcp_getofdm(rate);
9811 plen = octets * 16 / rate;
9812 if ((octets * 16 % rate) > 0) {
9814 if ((rate == BWN_CCK_RATE_11MB)
9822 raw[0] = bwn_plcp_getcck(rate);
10284 device_printf(sc->sc_dev, "incorrect OFDM rate %d\n",
10304 device_printf(sc->sc_dev, "incorrect CCK rate %d\n", plcp->o.raw[0]);
10310 const struct bwn_rxhdr4 *rxhdr, struct bwn_plcp6 *plcp, int rate,
10333 sc->sc_rx_th.wr_rate = rate;
10700 int rate;
10715 rate = sc->sc_rx_rate;
10718 rate = sc->sc_tx_rate;
10721 rate = 0;
10727 bwn_led_blink_start(mac, bwn_led_duration[rate].on_dur,
10728 bwn_led_duration[rate].off_dur);