Lines Matching defs:rate
30 #include "rate.h"
112 int rate, int erp, int short_preamble,
119 * len bytes (does not include FCS) at the given rate. Duration will
122 * rate is in 100 kbps, so divident is multiplied by 10 in the
157 4 * rate); /* T_SYM x N_SYM */
172 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate);
183 struct ieee80211_rate *rate)
195 erp = rate->flags & IEEE80211_RATE_ERP_G;
199 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp,
211 struct ieee80211_rate *rate;
222 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
229 erp = rate->flags & IEEE80211_RATE_ERP_G;
233 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift);
255 struct ieee80211_rate *rate;
266 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
272 erp = rate->flags & IEEE80211_RATE_ERP_G;
276 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift);
1804 continue; /* skip rate */
2093 u8 rate = 0;
2097 rate = elems->supp_rates[i];
2099 rate = elems->ext_supp_rates
2101 own_rate = 5 * (rate & 0x7f);
2102 is_basic = !!(rate & 0x80);
2104 if (is_basic && (rate & 0x7f) == BSS_MEMBERSHIP_SELECTOR_HT_PHY)
3512 int brate, rate, i, j, count = 0;
3517 rate = srates[i] & 0x7f;
3525 if (brate == rate) {
3541 int rate, shift;
3571 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
3573 *pos++ = basic | (u8) rate;
3585 int rate, shift;
3620 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
3622 *pos++ = basic | (u8) rate;
3675 u16 rate;
3684 /* Fill cfg80211 rate info */
3735 rate = cfg80211_calculate_bitrate(&ri);
3736 if (WARN_ONCE(!rate,
3744 ts -= mpdu_len * 8 * 10 / rate;
3746 ts += mpdu_offset * 8 * 10 / rate;