• Home
  • Raw
  • Download

Lines Matching refs:rate

136 minstrel_ht_get_group_idx(struct ieee80211_tx_rate *rate)  in minstrel_ht_get_group_idx()  argument
138 return GROUP_IDX((rate->idx / MCS_GROUP_RATES) + 1, in minstrel_ht_get_group_idx()
139 !!(rate->flags & IEEE80211_TX_RC_SHORT_GI), in minstrel_ht_get_group_idx()
140 !!(rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)); in minstrel_ht_get_group_idx()
145 struct ieee80211_tx_rate *rate) in minstrel_ht_get_stats() argument
149 if (rate->flags & IEEE80211_TX_RC_MCS) { in minstrel_ht_get_stats()
150 group = minstrel_ht_get_group_idx(rate); in minstrel_ht_get_stats()
151 idx = rate->idx % MCS_GROUP_RATES; in minstrel_ht_get_stats()
156 if (rate->idx == mp->cck_rates[idx]) in minstrel_ht_get_stats()
203 minstrel_ht_calc_tp(struct minstrel_ht_sta *mi, int group, int rate) in minstrel_ht_calc_tp() argument
210 mr = &mi->groups[group].rates[rate]; in minstrel_ht_calc_tp()
228 nsecs += minstrel_mcs_groups[group].duration[rate]; in minstrel_ht_calc_tp()
373 minstrel_ht_txstat_valid(struct minstrel_priv *mp, struct ieee80211_tx_rate *rate) in minstrel_ht_txstat_valid() argument
375 if (rate->idx < 0) in minstrel_ht_txstat_valid()
378 if (!rate->count) in minstrel_ht_txstat_valid()
381 if (rate->flags & IEEE80211_TX_RC_MCS) in minstrel_ht_txstat_valid()
384 return rate->idx == mp->cck_rates[0] || in minstrel_ht_txstat_valid()
385 rate->idx == mp->cck_rates[1] || in minstrel_ht_txstat_valid()
386 rate->idx == mp->cck_rates[2] || in minstrel_ht_txstat_valid()
387 rate->idx == mp->cck_rates[3]; in minstrel_ht_txstat_valid()
469 struct minstrel_rate_stats *rate, *rate2; in minstrel_ht_tx_status() local
505 rate = minstrel_ht_get_stats(mp, mi, &ar[i]); in minstrel_ht_tx_status()
508 rate->success += info->status.ampdu_ack_len; in minstrel_ht_tx_status()
510 rate->attempts += ar[i].count * info->status.ampdu_len; in minstrel_ht_tx_status()
517 rate = minstrel_get_ratestats(mi, mi->max_tp_rate); in minstrel_ht_tx_status()
518 if (rate->attempts > 30 && in minstrel_ht_tx_status()
519 MINSTREL_FRAC(rate->success, rate->attempts) < in minstrel_ht_tx_status()
618 ratetbl->rate[offset].count = 2; in minstrel_ht_set_rate()
619 ratetbl->rate[offset].count_rts = 2; in minstrel_ht_set_rate()
620 ratetbl->rate[offset].count_cts = 2; in minstrel_ht_set_rate()
622 ratetbl->rate[offset].count = mr->retry_count; in minstrel_ht_set_rate()
623 ratetbl->rate[offset].count_cts = mr->retry_count; in minstrel_ht_set_rate()
624 ratetbl->rate[offset].count_rts = mr->retry_count_rtscts; in minstrel_ht_set_rate()
637 ratetbl->rate[offset].count = ratetbl->rate[offset].count_rts; in minstrel_ht_set_rate()
641 ratetbl->rate[offset].idx = idx; in minstrel_ht_set_rate()
642 ratetbl->rate[offset].flags = flags; in minstrel_ht_set_rate()
669 rates->rate[i].idx = -1; in minstrel_ht_update_rates()
762 struct ieee80211_tx_rate *rate = &info->status.rates[0]; in minstrel_ht_get_rate() local
807 rate->idx = sample_idx % MCS_GROUP_RATES + in minstrel_ht_get_rate()
809 rate->flags = IEEE80211_TX_RC_MCS | sample_group->flags; in minstrel_ht_get_rate()
810 rate->count = 1; in minstrel_ht_get_rate()