• Home
  • Raw
  • Download

Lines Matching full:rates

194 	ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates,  in ath_set_rates()
195 ARRAY_SIZE(bf->rates)); in ath_set_rates()
500 struct ieee80211_tx_rate rates[4]; in ath_tx_complete_aggr() local
512 memcpy(rates, bf->rates, sizeof(rates)); in ath_tx_complete_aggr()
516 retries += rates[i].count; in ath_tx_complete_aggr()
626 memcpy(tx_info->control.rates, rates, sizeof(rates)); in ath_tx_complete_aggr()
722 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime()
773 memcpy(info->control.rates, bf->rates, in ath_tx_process_buffer()
774 sizeof(info->control.rates)); in ath_tx_process_buffer()
791 struct ieee80211_tx_rate *rates; in ath_lookup_legacy() local
796 rates = tx_info->control.rates; in ath_lookup_legacy()
799 if (!rates[i].count || rates[i].idx < 0) in ath_lookup_legacy()
802 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) in ath_lookup_legacy()
814 struct ieee80211_tx_rate *rates; in ath_lookup_rate() local
822 rates = bf->rates; in ath_lookup_rate()
833 if (!rates[i].count) in ath_lookup_rate()
836 if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) { in ath_lookup_rate()
841 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_lookup_rate()
846 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_lookup_rate()
849 frmlen = sc->tx.max_aggr_framelen[q][modeidx][rates[i].idx]; in ath_lookup_rate()
898 * The hardware can keep up at lower rates, but not higher rates in ath_compute_num_delims()
925 rix = bf->rates[0].idx; in ath_compute_num_delims()
926 flags = bf->rates[0].flags; in ath_compute_num_delims()
1264 struct ieee80211_tx_rate *rates; in ath_buf_set_rate() local
1274 rates = bf->rates; in ath_buf_set_rate()
1281 for (i = 0; i < ARRAY_SIZE(bf->rates); i++) { in ath_buf_set_rate()
1285 if (!rates[i].count || (rates[i].idx < 0)) in ath_buf_set_rate()
1288 rix = rates[i].idx; in ath_buf_set_rate()
1289 info->rates[i].Tries = rates[i].count; in ath_buf_set_rate()
1295 (rates[i].flags & IEEE80211_TX_RC_MCS) && in ath_buf_set_rate()
1301 if (rts || rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) { in ath_buf_set_rate()
1302 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1304 } else if (rates[i].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { in ath_buf_set_rate()
1305 info->rates[i].RateFlags |= ATH9K_RATESERIES_RTS_CTS; in ath_buf_set_rate()
1309 if (rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in ath_buf_set_rate()
1310 info->rates[i].RateFlags |= ATH9K_RATESERIES_2040; in ath_buf_set_rate()
1311 if (rates[i].flags & IEEE80211_TX_RC_SHORT_GI) in ath_buf_set_rate()
1312 info->rates[i].RateFlags |= ATH9K_RATESERIES_HALFGI; in ath_buf_set_rate()
1314 is_sgi = !!(rates[i].flags & IEEE80211_TX_RC_SHORT_GI); in ath_buf_set_rate()
1315 is_40 = !!(rates[i].flags & IEEE80211_TX_RC_40_MHZ_WIDTH); in ath_buf_set_rate()
1316 is_sp = !!(rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE); in ath_buf_set_rate()
1318 if (rates[i].flags & IEEE80211_TX_RC_MCS) { in ath_buf_set_rate()
1319 /* MCS rates */ in ath_buf_set_rate()
1320 info->rates[i].Rate = rix | 0x80; in ath_buf_set_rate()
1321 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1322 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1323 info->rates[i].PktDuration = ath_pkt_duration(sc, rix, len, in ath_buf_set_rate()
1326 info->rates[i].RateFlags |= ATH9K_RATESERIES_STBC; in ath_buf_set_rate()
1333 /* legacy rates */ in ath_buf_set_rate()
1334 rate = &common->sbands[tx_info->band].bitrates[rates[i].idx]; in ath_buf_set_rate()
1341 info->rates[i].Rate = rate->hw_value; in ath_buf_set_rate()
1343 if (rates[i].flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in ath_buf_set_rate()
1344 info->rates[i].Rate |= rate->hw_value_short; in ath_buf_set_rate()
1350 info->rates[i].ChSel = ah->txchainmask; in ath_buf_set_rate()
1352 info->rates[i].ChSel = ath_txchainmask_reduction(sc, in ath_buf_set_rate()
1353 ah->txchainmask, info->rates[i].Rate); in ath_buf_set_rate()
1355 info->rates[i].PktDuration = ath9k_hw_computetxtime(sc->sc_ah, in ath_buf_set_rate()
1358 is_cck = IS_CCK_RATE(info->rates[i].Rate); in ath_buf_set_rate()
2463 duration += info.rates[0].PktDuration; in ath_tx_cabq()
2632 * successfully by eventually preferring slower rates. in ath_tx_rc_status()
2639 tx_info->status.rates[tx_rateindex].count = in ath_tx_rc_status()
2644 tx_info->status.rates[i].count = 0; in ath_tx_rc_status()
2645 tx_info->status.rates[i].idx = -1; in ath_tx_rc_status()
2648 tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; in ath_tx_rc_status()