Lines Matching defs:rate
25 #include "rate.h"
655 * possible rate anyway.
656 * If we don't include _G here, we cannot find a rate
657 * in P2P, and thus trigger the WARN_ONCE() in rate.c
672 struct ieee80211_rate *rate;
674 rate = &hw->wiphy->bands[i]->bitrates[r];
676 if (!(rate->flags & mandatory))
1231 * rate control, it might still start new aggregation
2401 static void sta_stats_decode_rate(struct ieee80211_local *local, u32 rate,
2404 rinfo->bw = STA_STATS_GET(BW, rate);
2406 switch (STA_STATS_GET(TYPE, rate)) {
2409 rinfo->mcs = STA_STATS_GET(VHT_MCS, rate);
2410 rinfo->nss = STA_STATS_GET(VHT_NSS, rate);
2411 if (STA_STATS_GET(SGI, rate))
2416 rinfo->mcs = STA_STATS_GET(HT_MCS, rate);
2417 if (STA_STATS_GET(SGI, rate))
2424 int band = STA_STATS_GET(LEGACY_BAND, rate);
2425 int rate_idx = STA_STATS_GET(LEGACY_IDX, rate);
2444 rinfo->mcs = STA_STATS_GET(HE_MCS, rate);
2445 rinfo->nss = STA_STATS_GET(HE_NSS, rate);
2446 rinfo->he_gi = STA_STATS_GET(HE_GI, rate);
2447 rinfo->he_ru_alloc = STA_STATS_GET(HE_RU, rate);
2448 rinfo->he_dcm = STA_STATS_GET(HE_DCM, rate);
2452 rinfo->mcs = STA_STATS_GET(EHT_MCS, rate);
2453 rinfo->nss = STA_STATS_GET(EHT_NSS, rate);
2454 rinfo->eht_gi = STA_STATS_GET(EHT_GI, rate);
2455 rinfo->eht_ru_alloc = STA_STATS_GET(EHT_RU, rate);
2462 u32 rate = READ_ONCE(sta_get_last_rx_stats(sta)->last_rate);
2464 if (rate == STA_STATS_RATE_INVALID)
2467 sta_stats_decode_rate(sta->local, rate, rinfo);