Searched refs:rate_idx (Results 1 – 9 of 9) sorted by relevance
/net/mac80211/ |
D | rate.c | 431 static bool rate_idx_match_legacy_mask(s8 *rate_idx, int n_bitrates, u32 mask) in rate_idx_match_legacy_mask() argument 436 for (j = *rate_idx; j >= 0; j--) { in rate_idx_match_legacy_mask() 439 *rate_idx = j; in rate_idx_match_legacy_mask() 445 for (j = *rate_idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask() 448 *rate_idx = j; in rate_idx_match_legacy_mask() 455 static bool rate_idx_match_mcs_mask(s8 *rate_idx, u8 *mcs_mask) in rate_idx_match_mcs_mask() argument 460 ridx = *rate_idx / 8; in rate_idx_match_mcs_mask() 461 rbit = *rate_idx % 8; in rate_idx_match_mcs_mask() 471 *rate_idx = i * 8 + j; in rate_idx_match_mcs_mask() 478 ridx = (*rate_idx + 1) / 8; in rate_idx_match_mcs_mask() [all …]
|
D | status.c | 254 if (status_rate && !(status_rate->rate_idx.flags & in ieee80211_tx_radiotap_len() 275 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS) in ieee80211_tx_radiotap_len() 277 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_VHT_MCS) in ieee80211_tx_radiotap_len() 279 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_HE_MCS) in ieee80211_tx_radiotap_len() 326 if (!(status_rate->rate_idx.flags & in ieee80211_add_tx_radiotap_header() 332 legacy_rate = status_rate->rate_idx.legacy; in ieee80211_add_tx_radiotap_header() 369 if (status_rate && (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS)) in ieee80211_add_tx_radiotap_header() 375 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_SHORT_GI) in ieee80211_add_tx_radiotap_header() 377 if (status_rate->rate_idx.bw == RATE_INFO_BW_40) in ieee80211_add_tx_radiotap_header() 379 pos[2] = status_rate->rate_idx.mcs; in ieee80211_add_tx_radiotap_header() [all …]
|
D | airtime.c | 433 idx = status->rate_idx; in ieee80211_get_rate_duration() 437 streams = ((status->rate_idx >> 3) & 3) + 1; in ieee80211_get_rate_duration() 438 idx = status->rate_idx & 7; in ieee80211_get_rate_duration() 443 idx = status->rate_idx; in ieee80211_get_rate_duration() 484 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime() 487 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime() 518 stat->rate_idx = ri->mcs; in ieee80211_fill_rate_info() 537 stat->rate_idx = 0; in ieee80211_fill_rate_info() 542 stat->rate_idx = i; in ieee80211_fill_rate_info() 578 stat->rate_idx = rate->idx; in ieee80211_fill_rx_status() [all …]
|
D | sta_info.h | 990 r |= STA_STATS_FIELD(VHT_MCS, s->rate_idx); in sta_stats_encode_rate() 994 r |= STA_STATS_FIELD(HT_MCS, s->rate_idx); in sta_stats_encode_rate() 999 r |= STA_STATS_FIELD(LEGACY_IDX, s->rate_idx); in sta_stats_encode_rate() 1004 r |= STA_STATS_FIELD(HE_MCS, s->rate_idx); in sta_stats_encode_rate() 1012 r |= STA_STATS_FIELD(EHT_MCS, s->rate_idx); in sta_stats_encode_rate()
|
D | rx.c | 491 *pos++ = status->rate_idx; in ieee80211_add_rx_radiotap_header() 555 *pos = (status->rate_idx << 4) | status->nss; in ieee80211_add_rx_radiotap_header() 613 he.data3 |= HE_PREP(DATA3_DATA_MCS, status->rate_idx); in ieee80211_add_rx_radiotap_header() 4088 rate = &sband->bitrates[status->rate_idx]; in ieee80211_rx_handlers_result() 4402 int rate_idx; in ieee80211_accept_frame() local 4404 rate_idx = 0; /* TODO: HT/VHT rates */ in ieee80211_accept_frame() 4406 rate_idx = status->rate_idx; in ieee80211_accept_frame() 4408 BIT(rate_idx)); in ieee80211_accept_frame() 4422 int rate_idx; in ieee80211_accept_frame() local 4424 rate_idx = 0; /* TODO: HT rates */ in ieee80211_accept_frame() [all …]
|
D | rc80211_minstrel_ht.c | 420 struct rate_info *rate = &rate_status->rate_idx; in minstrel_ht_ri_get_stats() 1238 if (rate_status->rate_idx.flags & RATE_INFO_FLAGS_MCS || in minstrel_ht_ri_txstat_valid() 1239 rate_status->rate_idx.flags & RATE_INFO_FLAGS_VHT_MCS) in minstrel_ht_ri_txstat_valid() 1243 if (rate_status->rate_idx.legacy == in minstrel_ht_ri_txstat_valid() 1249 if (rate_status->rate_idx.legacy == in minstrel_ht_ri_txstat_valid()
|
D | util.c | 4196 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp() 4209 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp() 4234 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp() 4262 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp() 4302 bitrate = sband->bitrates[status->rate_idx].bitrate; in ieee80211_calculate_rx_timestamp() 4322 (unsigned long long)status->flag, status->rate_idx, in ieee80211_calculate_rx_timestamp()
|
D | scan.c | 151 &sband->bitrates[rx_status->rate_idx]; in ieee80211_inform_bss()
|
D | sta_info.c | 2447 int rate_idx = STA_STATS_GET(LEGACY_IDX, rate); in sta_stats_decode_rate() local 2454 brate = sband->bitrates[rate_idx].bitrate; in sta_stats_decode_rate()
|