Lines Matching refs:rate
110 int rate, int erp, int short_preamble) in ieee80211_frame_duration() argument
141 4 * rate); /* T_SYM x N_SYM */ in ieee80211_frame_duration()
156 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); in ieee80211_frame_duration()
167 struct ieee80211_rate *rate) in ieee80211_generic_frame_duration() argument
179 erp = rate->flags & IEEE80211_RATE_ERP_G; in ieee80211_generic_frame_duration()
182 dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp, in ieee80211_generic_frame_duration()
194 struct ieee80211_rate *rate; in ieee80211_rts_duration() local
205 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration()
212 erp = rate->flags & IEEE80211_RATE_ERP_G; in ieee80211_rts_duration()
216 dur = ieee80211_frame_duration(sband->band, 10, rate->bitrate, in ieee80211_rts_duration()
219 dur += ieee80211_frame_duration(sband->band, frame_len, rate->bitrate, in ieee80211_rts_duration()
222 dur += ieee80211_frame_duration(sband->band, 10, rate->bitrate, in ieee80211_rts_duration()
235 struct ieee80211_rate *rate; in ieee80211_ctstoself_duration() local
246 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration()
252 erp = rate->flags & IEEE80211_RATE_ERP_G; in ieee80211_ctstoself_duration()
256 dur = ieee80211_frame_duration(sband->band, frame_len, rate->bitrate, in ieee80211_ctstoself_duration()
260 dur += ieee80211_frame_duration(sband->band, 10, rate->bitrate, in ieee80211_ctstoself_duration()
1389 u8 rate = 0; in ieee80211_sta_get_rates() local
1393 rate = elems->supp_rates[i]; in ieee80211_sta_get_rates()
1395 rate = elems->ext_supp_rates in ieee80211_sta_get_rates()
1397 own_rate = 5 * (rate & 0x7f); in ieee80211_sta_get_rates()
1398 is_basic = !!(rate & 0x80); in ieee80211_sta_get_rates()
1400 if (is_basic && (rate & 0x7f) == BSS_MEMBERSHIP_SELECTOR_HT_PHY) in ieee80211_sta_get_rates()
2032 int rate; in ieee80211_add_srates_ie() local
2051 rate = sband->bitrates[i].bitrate; in ieee80211_add_srates_ie()
2052 *pos++ = basic | (u8) (rate / 5); in ieee80211_add_srates_ie()
2064 int rate; in ieee80211_add_ext_srates_ie() local
2086 rate = sband->bitrates[i].bitrate; in ieee80211_add_ext_srates_ie()
2087 *pos++ = basic | (u8) (rate / 5); in ieee80211_add_ext_srates_ie()
2140 u16 rate; in ieee80211_calculate_rx_timestamp() local
2176 rate = cfg80211_calculate_bitrate(&ri); in ieee80211_calculate_rx_timestamp()
2180 ts -= mpdu_len * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
2182 ts += mpdu_offset * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()