Lines Matching refs:rate_v1
108 u32 iwl_new_rate_from_v1(u32 rate_v1) in iwl_new_rate_from_v1() argument
113 if (rate_v1 == 0) in iwl_new_rate_from_v1()
114 return rate_v1; in iwl_new_rate_from_v1()
116 if (rate_v1 & RATE_MCS_HT_MSK_V1) { in iwl_new_rate_from_v1()
121 rate_v1 & RATE_HT_MCS_RATE_CODE_MSK_V1; in iwl_new_rate_from_v1()
122 nss = (rate_v1 & RATE_HT_MCS_MIMO2_MSK) >> in iwl_new_rate_from_v1()
125 } else if (rate_v1 & RATE_MCS_VHT_MSK_V1 || in iwl_new_rate_from_v1()
126 rate_v1 & RATE_MCS_HE_MSK_V1) { in iwl_new_rate_from_v1()
127 rate_v2 |= rate_v1 & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_new_rate_from_v1()
129 rate_v2 |= rate_v1 & RATE_VHT_MCS_MIMO2_MSK; in iwl_new_rate_from_v1()
131 if (rate_v1 & RATE_MCS_HE_MSK_V1) { in iwl_new_rate_from_v1()
132 u32 he_type_bits = rate_v1 & RATE_MCS_HE_TYPE_MSK_V1; in iwl_new_rate_from_v1()
134 u32 he_106t = (rate_v1 & RATE_MCS_HE_106T_MSK_V1) >> in iwl_new_rate_from_v1()
136 u32 he_gi_ltf = (rate_v1 & RATE_MCS_HE_GI_LTF_MSK_V1) >> in iwl_new_rate_from_v1()
146 he_gi_ltf += (rate_v1 & RATE_MCS_SGI_MSK_V1) >> in iwl_new_rate_from_v1()
152 rate_v2 |= rate_v1 & RATE_HE_DUAL_CARRIER_MODE_MSK; in iwl_new_rate_from_v1()
159 u32 legacy_rate = iwl_legacy_rate_to_fw_idx(rate_v1); in iwl_new_rate_from_v1()
162 legacy_rate = (rate_v1 & RATE_MCS_CCK_MSK_V1) ? in iwl_new_rate_from_v1()
166 if (!(rate_v1 & RATE_MCS_CCK_MSK_V1)) in iwl_new_rate_from_v1()
171 if (rate_v1 & RATE_MCS_LDPC_MSK_V1) in iwl_new_rate_from_v1()
173 rate_v2 |= (rate_v1 & RATE_MCS_CHAN_WIDTH_MSK_V1) | in iwl_new_rate_from_v1()
174 (rate_v1 & RATE_MCS_ANT_AB_MSK) | in iwl_new_rate_from_v1()
175 (rate_v1 & RATE_MCS_STBC_MSK) | in iwl_new_rate_from_v1()
176 (rate_v1 & RATE_MCS_BF_MSK); in iwl_new_rate_from_v1()
178 dup = (rate_v1 & RATE_MCS_DUP_MSK_V1) >> RATE_MCS_DUP_POS_V1; in iwl_new_rate_from_v1()
184 if ((!(rate_v1 & RATE_MCS_HE_MSK_V1)) && in iwl_new_rate_from_v1()
185 (rate_v1 & RATE_MCS_SGI_MSK_V1)) in iwl_new_rate_from_v1()