Lines Matching refs:rates

152 	ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates,  in ath_set_rates()
153 ARRAY_SIZE(bf->rates)); in ath_set_rates()
456 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
468 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
472 retries += rates[i].count; in ath_tx_complete_aggr()
588 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
694 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
695 sizeof(info->control.rates)); in ath_tx_process_buffer()
711 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
716 rates = tx_info->control.rates; in ath_lookup_legacy()
719 if (!rates[i].count || rates[i].idx < 0) in ath_lookup_legacy()
722 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) in ath_lookup_legacy()
734 struct ieee80211_tx_rate *rates; in ath_lookup_rate() local
742 rates = bf->rates; in ath_lookup_rate()
753 if (!rates[i].count) in ath_lookup_rate()
756 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) { in ath_lookup_rate()
761 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_lookup_rate()
766 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_lookup_rate()
769 frmlen = sc->tx.max_aggr_framelen[q][modeidx][rates[i].idx]; in ath_lookup_rate()
845 rix = bf->rates[0].idx; in ath_compute_num_delims()
846 flags = bf->rates[0].flags; in ath_compute_num_delims()
1179 struct ieee80211_tx_rate *rates; in ath_buf_set_rate() local
1189 rates = bf->rates; in ath_buf_set_rate()
1196 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { in ath_buf_set_rate()
1200 if (!rates[i].count || (rates[i].idx < 0)) in ath_buf_set_rate()
1203 rix = rates[i].idx; in ath_buf_set_rate()
1204 info->rates[i].Tries = rates[i].count; in ath_buf_set_rate()
1210 (rates[i].flags & IEEE80211_TX_RC_MCS) && in ath_buf_set_rate()
1216 if (rts || rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) { in ath_buf_set_rate()
1217 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1219 } else if (rates[i].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in ath_buf_set_rate()
1220 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1224 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_buf_set_rate()
1225 info->rates[i].RateFlags |= ATH9K_RATESERIES_2040; in ath_buf_set_rate()
1226 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_buf_set_rate()
1227 info->rates[i].RateFlags |= ATH9K_RATESERIES_HALFGI; in ath_buf_set_rate()
1229 is_sgi = !!(rates[i].flags & IEEE80211_TX_RC_SHORT_GI); in ath_buf_set_rate()
1230 is_40 = !!(rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH); in ath_buf_set_rate()
1231 is_sp = !!(rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE); in ath_buf_set_rate()
1233 if (rates[i].flags & IEEE80211_TX_RC_MCS) { in ath_buf_set_rate()
1235 info->rates[i].Rate = rix | 0x80; in ath_buf_set_rate()
1236 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1237 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1238 info->rates[i].PktDuration = ath_pkt_duration(sc, rix, len, in ath_buf_set_rate()
1241 info->rates[i].RateFlags |= ATH9K_RATESERIES_STBC; in ath_buf_set_rate()
1249 rate = &common->sbands[tx_info->band].bitrates[rates[i].idx]; in ath_buf_set_rate()
1256 info->rates[i].Rate = rate->hw_value; in ath_buf_set_rate()
1258 if (rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in ath_buf_set_rate()
1259 info->rates[i].Rate |= rate->hw_value_short; in ath_buf_set_rate()
1265 info->rates[i].ChSel = ah->txchainmask; in ath_buf_set_rate()
1267 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1268 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1270 info->rates[i].PktDuration = ath9k_hw_computetxtime(sc->sc_ah, in ath_buf_set_rate()
1273 is_cck = IS_CCK_RATE(info->rates[i].Rate); in ath_buf_set_rate()
2450 duration += info.rates[0].PktDuration; in ath_tx_cabq()
2626 tx_info->status.rates[tx_rateindex].count = in ath_tx_rc_status()
2631 tx_info->status.rates[i].count = 0; in ath_tx_rc_status()
2632 tx_info->status.rates[i].idx = -1; in ath_tx_rc_status()
2635 tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; in ath_tx_rc_status()