Lines Matching refs:last_rate
70 int cur_idx, last_rate;
73 last_rate = min_t(int, st->retry, IEEE80211_TX_MAX_RATES - 1);
74 mt76_mac_process_tx_rate(&rate[last_rate], st->rate);
75 if (last_rate < IEEE80211_TX_MAX_RATES - 1)
76 rate[last_rate + 1].idx = -1;
78 cur_idx = rate[last_rate].idx + st->retry;
79 for (i = 0; i <= last_rate; i++) {
80 rate[i].flags = rate[last_rate].flags;
85 if (last_rate > 0)
86 rate[last_rate - 1].count = st->retry + 1 - last_rate;