Home
last modified time | relevance | path

Searched refs:ratetbl (Results 1 – 4 of 4) sorted by relevance

/net/mac80211/
Drc80211_minstrel.c113 minstrel_set_rate(struct minstrel_sta_info *mi, struct ieee80211_sta_rates *ratetbl, in minstrel_set_rate() argument
118 ratetbl->rate[offset].idx = r->rix; in minstrel_set_rate()
119 ratetbl->rate[offset].count = r->adjusted_retry_count; in minstrel_set_rate()
120 ratetbl->rate[offset].count_cts = r->retry_count_cts; in minstrel_set_rate()
121 ratetbl->rate[offset].count_rts = r->stats.retry_count_rtscts; in minstrel_set_rate()
127 struct ieee80211_sta_rates *ratetbl; in minstrel_update_rates() local
130 ratetbl = kzalloc(sizeof(*ratetbl), GFP_ATOMIC); in minstrel_update_rates()
131 if (!ratetbl) in minstrel_update_rates()
135 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[0]); in minstrel_update_rates()
139 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[1]); in minstrel_update_rates()
[all …]
Drate.c699 struct ieee80211_sta_rates *ratetbl = NULL; in rate_control_fill_sta_table() local
703 ratetbl = rcu_dereference(sta->rates); in rate_control_fill_sta_table()
713 } else if (ratetbl) { in rate_control_fill_sta_table()
714 rates[i].idx = ratetbl->rate[i].idx; in rate_control_fill_sta_table()
715 rates[i].flags = ratetbl->rate[i].flags; in rate_control_fill_sta_table()
717 rates[i].count = ratetbl->rate[i].count_rts; in rate_control_fill_sta_table()
719 rates[i].count = ratetbl->rate[i].count_cts; in rate_control_fill_sta_table()
721 rates[i].count = ratetbl->rate[i].count; in rate_control_fill_sta_table()
Drc80211_minstrel_ht.c1057 struct ieee80211_sta_rates *ratetbl, int offset, int index) in minstrel_ht_set_rate() argument
1069 ratetbl->rate[offset].count = 2; in minstrel_ht_set_rate()
1070 ratetbl->rate[offset].count_rts = 2; in minstrel_ht_set_rate()
1071 ratetbl->rate[offset].count_cts = 2; in minstrel_ht_set_rate()
1073 ratetbl->rate[offset].count = mrs->retry_count; in minstrel_ht_set_rate()
1074 ratetbl->rate[offset].count_cts = mrs->retry_count; in minstrel_ht_set_rate()
1075 ratetbl->rate[offset].count_rts = mrs->retry_count_rtscts; in minstrel_ht_set_rate()
1093 ratetbl->rate[offset].count = ratetbl->rate[offset].count_rts; in minstrel_ht_set_rate()
1097 ratetbl->rate[offset].idx = idx; in minstrel_ht_set_rate()
1098 ratetbl->rate[offset].flags = flags; in minstrel_ht_set_rate()
Dtx.c670 struct ieee80211_sta_rates *ratetbl = NULL; in ieee80211_tx_h_rate_ctrl() local
745 ratetbl = rcu_dereference(tx->sta->sta.rates); in ieee80211_tx_h_rate_ctrl()
748 if (ratetbl) { in ieee80211_tx_h_rate_ctrl()
750 .idx = ratetbl->rate[0].idx, in ieee80211_tx_h_rate_ctrl()
751 .flags = ratetbl->rate[0].flags, in ieee80211_tx_h_rate_ctrl()
752 .count = ratetbl->rate[0].count in ieee80211_tx_h_rate_ctrl()
755 if (ratetbl->rate[0].idx < 0) in ieee80211_tx_h_rate_ctrl()
773 if (ratetbl) in ieee80211_tx_h_rate_ctrl()