Lines Matching refs:rate_idx
498 int *rate_idx)
504 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags);
506 if (*rate_idx == IWL_RATE_INVALID) {
507 *rate_idx = -1;
2356 int rate_idx;
2387 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx);
2391 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green);
2410 int rate_idx;
2435 rate_idx = lq_sta->last_txrate_idx;
2438 rate_idx -= IWL_FIRST_OFDM_RATE;
2440 rate_idx = (rate_idx > 0) ? (rate_idx - 1) : 0;
2443 rate_idx = rate_idx + (2 * MCS_INDEX_PER_STREAM);
2446 rate_idx = rate_idx + MCS_INDEX_PER_STREAM;
2458 if ((rate_idx < 0) || (rate_idx >= IWL_RATE_COUNT_LEGACY) ||
2460 (rate_idx < IWL_FIRST_OFDM_RATE)))
2461 rate_idx = rate_lowest_index(sband, sta);
2464 rate_idx -= IWL_FIRST_OFDM_RATE;
2467 info->control.rates[0].idx = rate_idx;
2585 int rate_idx;
2598 &tbl_type, &rate_idx);
2654 &rate_idx);
2663 new_rate = rs_get_lower_rate(lq_sta, &tbl_type, rate_idx,