Lines Matching refs:rate

758 #define RUM_RATE_IS_OFDM(rate)          ((rate) >= 12 && (rate) != 22)  argument
915 switch (desc->rate) { in rum_rxrate()
926 if (desc->rate == 10) in rum_rxrate()
928 if (desc->rate == 20) in rum_rxrate()
930 if (desc->rate == 55) in rum_rxrate()
932 if (desc->rate == 110) in rum_rxrate()
943 rum_ack_rate(struct ieee80211com *ic, int rate) in rum_ack_rate() argument
945 switch (rate) { in rum_ack_rate()
952 return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; in rum_ack_rate()
978 rum_txtime(int len, int rate, uint32_t flags) in rum_txtime() argument
982 if (RUM_RATE_IS_OFDM(rate)) { in rum_txtime()
984 txtime = (8 + 4 * len + 3 + rate - 1) / rate; in rum_txtime()
988 txtime = (16 * len + rate - 1) / rate; in rum_txtime()
989 if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) in rum_txtime()
998 rum_plcp_signal(int rate) in rum_plcp_signal() argument
1000 switch (rate) { in rum_plcp_signal()
1024 uint32_t flags, uint16_t xflags, int len, int rate) in rum_setup_tx_desc() argument
1043 desc->plcp_signal = rum_plcp_signal(rate); in rum_setup_tx_desc()
1047 if (RUM_RATE_IS_OFDM(rate)) { in rum_setup_tx_desc()
1054 plcp_length = (16 * len + rate - 1) / rate; in rum_setup_tx_desc()
1055 if (rate == 22) { in rum_setup_tx_desc()
1063 if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) in rum_setup_tx_desc()
1081 int rate, xferlen, pktlen, needrts = 0, needcts = 0; in rum_tx_data() local
1104 rate = ni->ni_rates.rs_rates[0]; in rum_tx_data()
1106 rate = ic->ic_bss->ni_rates.rs_rates[ic->ic_fixed_rate]; in rum_tx_data()
1108 rate = ni->ni_rates.rs_rates[ni->ni_txrate]; in rum_tx_data()
1109 if (rate == 0) in rum_tx_data()
1110 rate = 2; /* XXX should not happen */ in rum_tx_data()
1111 rate &= IEEE80211_RATE_VAL; in rum_tx_data()
1119 RUM_RATE_IS_OFDM(rate)) { in rum_tx_data()
1131 ackrate = rum_ack_rate(ic, rate); in rum_tx_data()
1133 dur = rum_txtime(pktlen, rate, ic->ic_flags) + in rum_tx_data()
1194 dur = rum_txtime(RUM_ACK_SIZE, rum_ack_rate(ic, rate), in rum_tx_data()
1209 tap->wt_rate = rate; in rum_tx_data()
1218 rum_setup_tx_desc(sc, desc, flags, 0, m0->m_pkthdr.len, rate); in rum_tx_data()
1232 rate, xferlen)); in rum_tx_data()
2177 int rate; in rum_prepare_beacon() local
2187 rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_curchan) ? 12 : 2; in rum_prepare_beacon()
2190 m0->m_pkthdr.len, rate); in rum_prepare_beacon()