Lines Matching refs:rate

51 /* quickly determine if a given rate is CCK or OFDM */
52 #define RUM_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22)
598 * Return the expected ack rate for a frame transmitted at rate `rate'.
601 rum_ack_rate(struct ieee80211com *ic, int rate)
603 switch (rate) {
610 return ((ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate);
631 * Compute the duration (in us) needed to transmit `len' bytes at rate `rate'.
633 * given rate. `flags' indicates whether short preamble is in use or not.
636 rum_txtime(int len, int rate, uint32_t flags)
640 if (RUM_RATE_IS_OFDM(rate)) {
642 txtime = (8 + 4 * len + 3 + rate - 1) / rate;
646 txtime = (16 * len + rate - 1) / rate;
647 if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE))
656 rum_plcp_signal(int rate)
658 switch (rate) {
682 uint32_t flags, uint16_t xflags, int len, int rate)
698 desc->plcp_signal = rum_plcp_signal(rate);
702 if (RUM_RATE_IS_OFDM(rate)) {
709 plcp_length = (16 * len + rate - 1) / rate;
710 if (rate == 22) {
718 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
736 int rate, err = DDI_SUCCESS, rv;
812 rate = ic->ic_bss->in_rates.ir_rates[ic->ic_fixed_rate];
814 rate = ni->in_rates.ir_rates[ni->in_txrate];
816 rate &= IEEE80211_RATE_VAL;
817 if (rate <= 0) {
818 rate = 2; /* basic rate */
826 dur = rum_txtime(RUM_ACK_SIZE, rum_ack_rate(ic, rate),
831 rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_curchan) ? 12 : 2;
836 dur = rum_txtime(RUM_ACK_SIZE, rum_ack_rate(ic, rate),
851 rum_setup_tx_desc(sc, desc, flags, 0, pktlen, rate);
865 ral_debug(RAL_DBG_TX, "sending data frame len=%u rate=%u xfer len=%u\n",
866 pktlen, rate, xferlen);
1016 * Enable multi-rate retries for frames sent at OFDM rates.
1054 /* update basic rate set */
1455 /* enable automatic rate adaptation in STA mode */
1844 * not provide per-frame stats, we can't do per-node rate adaptation and
1845 * thus automatic rate adaptation is only enabled in STA operating mode.
1947 /* set rate to some reasonable initial value */