Home
last modified time | relevance | path

Searched refs:n_rates (Results 1 – 7 of 7) sorted by relevance

/net/mac80211/
Drc80211_minstrel.c201 for (i = 0; i < mi->n_rates; i++) { in minstrel_update_stats()
316 if ((int) mi->sample_row >= mi->n_rates) { in minstrel_get_next_sample()
375 } else if (delta > mi->n_rates * 2) { in minstrel_get_rate()
385 mi->sample_packets += (delta - mi->n_rates * 2); in minstrel_get_rate()
447 memset(mi->sample_table, 0xff, SAMPLE_COLUMNS * mi->n_rates); in init_sample_table()
451 for (i = 0; i < mi->n_rates; i++) { in init_sample_table()
452 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
454 new_idx = (new_idx + 1) % mi->n_rates; in init_sample_table()
545 mi->n_rates = n; in minstrel_rate_init()
Drc80211_minstrel_debugfs.c77 for (i = 0; i < mi->n_rates; i++) { in minstrel_stats_open()
134 for (i = 0; i < mi->n_rates; i++) { in minstrel_stats_csv_open()
Drc80211_minstrel_ht.c559 minstrel_ht_find_probe_rates(struct minstrel_ht_sta *mi, u16 *rates, int *n_rates, in minstrel_ht_find_probe_rates() argument
596 rates[(*n_rates)++] = idx; in minstrel_ht_find_probe_rates()
608 int n_rates = 0; in minstrel_ht_rate_sample_switch() local
628 minstrel_ht_find_probe_rates(mi, rates, &n_rates, faster_rate); in minstrel_ht_rate_sample_switch()
629 if (!n_rates && faster_rate) in minstrel_ht_rate_sample_switch()
630 minstrel_ht_find_probe_rates(mi, rates, &n_rates, false); in minstrel_ht_rate_sample_switch()
633 if (!n_rates) { in minstrel_ht_rate_sample_switch()
650 if (n_rates > 1) { in minstrel_ht_rate_sample_switch()
652 i = random % n_rates; in minstrel_ht_rate_sample_switch()
Drc80211_minstrel.h133 int n_rates; member
/net/wireless/
Dutil.c1952 const u8 *rates, unsigned int n_rates, in ieee80211_get_ratemask() argument
1960 if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES) in ieee80211_get_ratemask()
1965 for (i = 0; i < n_rates; i++) { in ieee80211_get_ratemask()
Dcore.h523 const u8 *rates, unsigned int n_rates,
Dnl80211.c10117 int n_rates = in nl80211_join_ibss() local
10122 err = ieee80211_get_ratemask(sband, rates, n_rates, in nl80211_join_ibss()
11713 int n_rates = in nl80211_join_mesh() local
11722 err = ieee80211_get_ratemask(sband, rates, n_rates, in nl80211_join_mesh()