Lines Matching +full:per +full:- +full:rate
1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Copyright (C) 2003 - 2014, 2018 - 2024 Intel Corporation
14 #include "iwl-config.h"
16 #include "fw-api.h"
17 #include "iwl-trans.h"
19 #define RS_NAME "iwl-mvm-rs"
27 u8 prev_rs; /* previous rate used in rs algo */
28 u8 next_rs; /* next rate used in rs algo */
48 IWL_RATE_INVM_INDEX_TABLE = IWL_RATE_INVM_INDEX - 1,
115 #define IWL_RATES_MASK ((1 << IWL_RATE_COUNT) - 1)
117 #define IWL_INVALID_VALUE -1
131 /* load per tid defines for A-MPDU activation */
179 #define is_legacy(rate) is_type_legacy((rate)->type) argument
180 #define is_ht_siso(rate) is_type_ht_siso((rate)->type) argument
181 #define is_ht_mimo2(rate) is_type_ht_mimo2((rate)->type) argument
182 #define is_vht_siso(rate) is_type_vht_siso((rate)->type) argument
183 #define is_vht_mimo2(rate) is_type_vht_mimo2((rate)->type) argument
184 #define is_siso(rate) is_type_siso((rate)->type) argument
185 #define is_mimo2(rate) is_type_mimo2((rate)->type) argument
186 #define is_mimo(rate) is_type_mimo((rate)->type) argument
187 #define is_ht(rate) is_type_ht((rate)->type) argument
188 #define is_vht(rate) is_type_vht((rate)->type) argument
189 #define is_he(rate) is_type_he((rate)->type) argument
190 #define is_a_band(rate) is_type_a_band((rate)->type) argument
191 #define is_g_band(rate) is_type_g_band((rate)->type) argument
193 #define is_ht20(rate) ((rate)->bw == RATE_MCS_CHAN_WIDTH_20) argument
194 #define is_ht40(rate) ((rate)->bw == RATE_MCS_CHAN_WIDTH_40) argument
195 #define is_ht80(rate) ((rate)->bw == RATE_MCS_CHAN_WIDTH_80) argument
196 #define is_ht160(rate) ((rate)->bw == RATE_MCS_CHAN_WIDTH_160) argument
199 * struct iwl_lq_sta_rs_fw - rate and related statistics for RS in FW
200 * @last_rate_n_flags: last rate reported by FW
204 * @pers.chain_signal: per chain signal strength
212 /* persistent fields - initialized only once - keep last! */
217 * @pers.dbg_fixed_rate: for debug, use fixed rate if not 0
222 * frames in A-MPDU
234 * struct iwl_rate_scale_data -- tx success history for one rate
239 s32 success_ratio; /* per-cent * 128 */
269 /* Packet stats per rate */
276 * struct iwl_scale_tbl_info -- tx params and success history for all rates
282 struct rs_rate rate; member
285 struct iwl_rate_scale_data win[IWL_RATE_COUNT]; /* rate histories */
286 /* per txpower-reduction history */
297 * struct iwl_lq_sta -- driver's rate scaling private structure
302 u8 active_tbl; /* index of active table, range 0-1 */
332 /* Highest rate per Tx mode */
337 /* Optimal rate based on RSSI and STA caps.
360 /* persistent fields - initialized only once - keep last! */
380 * Note, it's iwlmvm <-> mac80211 interface.
381 * bits 0-7: reduced tx power
382 * bits 8-10: LQ command's color
393 /* Initialize station's rate scaling information after adding station */
406 * iwl_mvm_rate_control_register - Register the rate control algorithm callbacks
408 * Since the rate control algorithm is hardware specific, there is no need
410 * iwl_rate_control_register in order to register the rate control callbacks
418 * iwl_mvm_rate_control_unregister - Unregister the rate control callbacks