Lines Matching refs:rate_n_flags
203 u32 rate_n_flags) in iwl_mvm_rx_handle_tcm() argument
237 if (!(rate_n_flags & (RATE_MCS_HT_MSK_V1 | RATE_MCS_VHT_MSK_V1))) in iwl_mvm_rx_handle_tcm()
251 if (rate_n_flags & RATE_MCS_HT_MSK_V1) { in iwl_mvm_rx_handle_tcm()
252 thr = thresh_tpt[rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK_V1]; in iwl_mvm_rx_handle_tcm()
253 thr *= 1 + ((rate_n_flags & RATE_HT_MCS_NSS_MSK_V1) >> in iwl_mvm_rx_handle_tcm()
256 if (WARN_ON((rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK) >= in iwl_mvm_rx_handle_tcm()
259 thr = thresh_tpt[rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK]; in iwl_mvm_rx_handle_tcm()
260 thr *= 1 + FIELD_GET(RATE_MCS_NSS_MSK, rate_n_flags); in iwl_mvm_rx_handle_tcm()
263 thr <<= ((rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK_V1) >> in iwl_mvm_rx_handle_tcm()
299 u32 rate_n_flags; in iwl_mvm_rx_rx_mpdu() local
343 rate_n_flags = le32_to_cpu(phy_info->rate_n_flags); in iwl_mvm_rx_rx_mpdu()
455 rate_n_flags); in iwl_mvm_rx_rx_mpdu()
477 switch (rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK_V1) { in iwl_mvm_rx_rx_mpdu()
490 if (!(rate_n_flags & RATE_MCS_CCK_MSK_V1) && in iwl_mvm_rx_rx_mpdu()
491 rate_n_flags & RATE_MCS_SGI_MSK_V1) in iwl_mvm_rx_rx_mpdu()
493 if (rate_n_flags & RATE_HT_MCS_GF_MSK) in iwl_mvm_rx_rx_mpdu()
495 if (rate_n_flags & RATE_MCS_LDPC_MSK_V1) in iwl_mvm_rx_rx_mpdu()
497 if (rate_n_flags & RATE_MCS_HT_MSK_V1) { in iwl_mvm_rx_rx_mpdu()
498 u8 stbc = (rate_n_flags & RATE_MCS_STBC_MSK) >> in iwl_mvm_rx_rx_mpdu()
501 rx_status->rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK_V1; in iwl_mvm_rx_rx_mpdu()
503 } else if (rate_n_flags & RATE_MCS_VHT_MSK_V1) { in iwl_mvm_rx_rx_mpdu()
504 u8 stbc = (rate_n_flags & RATE_MCS_STBC_MSK) >> in iwl_mvm_rx_rx_mpdu()
507 FIELD_GET(RATE_MCS_NSS_MSK, rate_n_flags) + 1; in iwl_mvm_rx_rx_mpdu()
508 rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_rx_mpdu()
511 if (rate_n_flags & RATE_MCS_BF_MSK) in iwl_mvm_rx_rx_mpdu()
514 int rate = iwl_mvm_legacy_rate_to_mac80211_idx(rate_n_flags, in iwl_mvm_rx_rx_mpdu()
519 rate_n_flags, rx_status->band)) { in iwl_mvm_rx_rx_mpdu()
527 iwl_mvm_update_frame_stats(mvm, rate_n_flags, in iwl_mvm_rx_rx_mpdu()