Lines Matching refs:rates
141 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
142 ARRAY_SIZE(bf->rates)); in ath_set_rates()
445 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
457 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
461 retries += rates[i].count; in ath_tx_complete_aggr()
577 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
683 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
684 sizeof(info->control.rates)); in ath_tx_process_buffer()
700 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
705 rates = tx_info->control.rates; in ath_lookup_legacy()
708 if (!rates[i].count || rates[i].idx < 0) in ath_lookup_legacy()
711 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) in ath_lookup_legacy()
723 struct ieee80211_tx_rate *rates; in ath_lookup_rate() local
731 rates = bf->rates; in ath_lookup_rate()
742 if (!rates[i].count) in ath_lookup_rate()
745 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) { in ath_lookup_rate()
750 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_lookup_rate()
755 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_lookup_rate()
758 frmlen = sc->tx.max_aggr_framelen[q][modeidx][rates[i].idx]; in ath_lookup_rate()
834 rix = bf->rates[0].idx; in ath_compute_num_delims()
835 flags = bf->rates[0].flags; in ath_compute_num_delims()
1168 struct ieee80211_tx_rate *rates; in ath_buf_set_rate() local
1178 rates = bf->rates; in ath_buf_set_rate()
1185 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { in ath_buf_set_rate()
1189 if (!rates[i].count || (rates[i].idx < 0)) in ath_buf_set_rate()
1192 rix = rates[i].idx; in ath_buf_set_rate()
1193 info->rates[i].Tries = rates[i].count; in ath_buf_set_rate()
1199 (rates[i].flags & IEEE80211_TX_RC_MCS) && in ath_buf_set_rate()
1205 if (rts || rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) { in ath_buf_set_rate()
1206 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1208 } else if (rates[i].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in ath_buf_set_rate()
1209 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1213 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_buf_set_rate()
1214 info->rates[i].RateFlags |= ATH9K_RATESERIES_2040; in ath_buf_set_rate()
1215 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_buf_set_rate()
1216 info->rates[i].RateFlags |= ATH9K_RATESERIES_HALFGI; in ath_buf_set_rate()
1218 is_sgi = !!(rates[i].flags & IEEE80211_TX_RC_SHORT_GI); in ath_buf_set_rate()
1219 is_40 = !!(rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH); in ath_buf_set_rate()
1220 is_sp = !!(rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE); in ath_buf_set_rate()
1222 if (rates[i].flags & IEEE80211_TX_RC_MCS) { in ath_buf_set_rate()
1224 info->rates[i].Rate = rix | 0x80; in ath_buf_set_rate()
1225 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1226 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1227 info->rates[i].PktDuration = ath_pkt_duration(sc, rix, len, in ath_buf_set_rate()
1230 info->rates[i].RateFlags |= ATH9K_RATESERIES_STBC; in ath_buf_set_rate()
1238 rate = &common->sbands[tx_info->band].bitrates[rates[i].idx]; in ath_buf_set_rate()
1245 info->rates[i].Rate = rate->hw_value; in ath_buf_set_rate()
1247 if (rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in ath_buf_set_rate()
1248 info->rates[i].Rate |= rate->hw_value_short; in ath_buf_set_rate()
1254 info->rates[i].ChSel = ah->txchainmask; in ath_buf_set_rate()
1256 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1257 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1259 info->rates[i].PktDuration = ath9k_hw_computetxtime(sc->sc_ah, in ath_buf_set_rate()
1262 is_cck = IS_CCK_RATE(info->rates[i].Rate); in ath_buf_set_rate()
2413 duration += info.rates[0].PktDuration; in ath_tx_cabq()
2589 tx_info->status.rates[tx_rateindex].count = in ath_tx_rc_status()
2594 tx_info->status.rates[i].count = 0; in ath_tx_rc_status()
2595 tx_info->status.rates[i].idx = -1; in ath_tx_rc_status()
2598 tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; in ath_tx_rc_status()