xref: /linux/drivers/net/wireless/intel/iwlwifi/cfg/22000.c (revision 7bb377107c72a40ab7505341f8626c8eb79a0cb7)
1 /******************************************************************************
2  *
3  * This file is provided under a dual BSD/GPLv2 license.  When using or
4  * redistributing this file, you may do so under either license.
5  *
6  * GPL LICENSE SUMMARY
7  *
8  * Copyright(c) 2015-2017 Intel Deutschland GmbH
9  * Copyright (C) 2018-2019 Intel Corporation
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of version 2 of the GNU General Public License as
13  * published by the Free Software Foundation.
14  *
15  * This program is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * General Public License for more details.
19  *
20  * BSD LICENSE
21  *
22  * Copyright(c) 2015-2017 Intel Deutschland GmbH
23  * Copyright (C) 2018-2019 Intel Corporation
24  * All rights reserved.
25  *
26  * Redistribution and use in source and binary forms, with or without
27  * modification, are permitted provided that the following conditions
28  * are met:
29  *
30  *  * Redistributions of source code must retain the above copyright
31  *    notice, this list of conditions and the following disclaimer.
32  *  * Redistributions in binary form must reproduce the above copyright
33  *    notice, this list of conditions and the following disclaimer in
34  *    the documentation and/or other materials provided with the
35  *    distribution.
36  *  * Neither the name Intel Corporation nor the names of its
37  *    contributors may be used to endorse or promote products derived
38  *    from this software without specific prior written permission.
39  *
40  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
43  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
44  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
48  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51  *
52  *****************************************************************************/
53 
54 #include <linux/module.h>
55 #include <linux/stringify.h>
56 #include "iwl-config.h"
57 #include "iwl-prph.h"
58 
59 /* Highest firmware API version supported */
60 #define IWL_22000_UCODE_API_MAX	53
61 
62 /* Lowest firmware API version supported */
63 #define IWL_22000_UCODE_API_MIN	39
64 
65 /* NVM versions */
66 #define IWL_22000_NVM_VERSION		0x0a1d
67 
68 /* Memory offsets and lengths */
69 #define IWL_22000_DCCM_OFFSET		0x800000 /* LMAC1 */
70 #define IWL_22000_DCCM_LEN		0x10000 /* LMAC1 */
71 #define IWL_22000_DCCM2_OFFSET		0x880000
72 #define IWL_22000_DCCM2_LEN		0x8000
73 #define IWL_22000_SMEM_OFFSET		0x400000
74 #define IWL_22000_SMEM_LEN		0xD0000
75 
76 #define IWL_22000_JF_FW_PRE		"iwlwifi-Qu-a0-jf-b0-"
77 #define IWL_22000_HR_FW_PRE		"iwlwifi-Qu-a0-hr-a0-"
78 #define IWL_22000_HR_CDB_FW_PRE		"iwlwifi-QuIcp-z0-hrcdb-a0-"
79 #define IWL_22000_QU_B_HR_B_FW_PRE	"iwlwifi-Qu-b0-hr-b0-"
80 #define IWL_22000_HR_B_FW_PRE		"iwlwifi-QuQnj-b0-hr-b0-"
81 #define IWL_QU_C_HR_B_FW_PRE		"iwlwifi-Qu-c0-hr-b0-"
82 #define IWL_QU_B_JF_B_FW_PRE		"iwlwifi-Qu-b0-jf-b0-"
83 #define IWL_QU_C_JF_B_FW_PRE		"iwlwifi-Qu-c0-jf-b0-"
84 #define IWL_QUZ_A_HR_B_FW_PRE		"iwlwifi-QuZ-a0-hr-b0-"
85 #define IWL_QUZ_A_JF_B_FW_PRE		"iwlwifi-QuZ-a0-jf-b0-"
86 #define IWL_QNJ_B_JF_B_FW_PRE		"iwlwifi-QuQnj-b0-jf-b0-"
87 #define IWL_CC_A_FW_PRE			"iwlwifi-cc-a0-"
88 #define IWL_22000_SO_A_JF_B_FW_PRE	"iwlwifi-so-a0-jf-b0-"
89 #define IWL_22000_SO_A_HR_B_FW_PRE      "iwlwifi-so-a0-hr-b0-"
90 #define IWL_22000_SO_A_GF_A_FW_PRE      "iwlwifi-so-a0-gf-a0-"
91 #define IWL_22000_TY_A_GF_A_FW_PRE      "iwlwifi-ty-a0-gf-a0-"
92 #define IWL_22000_SO_A_GF4_A_FW_PRE     "iwlwifi-so-a0-gf4-a0-"
93 #define IWL_SNJ_A_GF4_A_FW_PRE		"iwlwifi-SoSnj-a0-gf4-a0-"
94 #define IWL_SNJ_A_GF_A_FW_PRE		"iwlwifi-SoSnj-a0-gf-a0-"
95 
96 #define IWL_22000_HR_MODULE_FIRMWARE(api) \
97 	IWL_22000_HR_FW_PRE __stringify(api) ".ucode"
98 #define IWL_22000_JF_MODULE_FIRMWARE(api) \
99 	IWL_22000_JF_FW_PRE __stringify(api) ".ucode"
100 #define IWL_22000_QU_B_HR_B_MODULE_FIRMWARE(api) \
101 	IWL_22000_QU_B_HR_B_FW_PRE __stringify(api) ".ucode"
102 #define IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(api)	\
103 	IWL_22000_HR_B_FW_PRE __stringify(api) ".ucode"
104 #define IWL_QUZ_A_HR_B_MODULE_FIRMWARE(api) \
105 	IWL_QUZ_A_HR_B_FW_PRE __stringify(api) ".ucode"
106 #define IWL_QUZ_A_JF_B_MODULE_FIRMWARE(api) \
107 	IWL_QUZ_A_JF_B_FW_PRE __stringify(api) ".ucode"
108 #define IWL_QU_C_HR_B_MODULE_FIRMWARE(api) \
109 	IWL_QU_C_HR_B_FW_PRE __stringify(api) ".ucode"
110 #define IWL_QU_B_JF_B_MODULE_FIRMWARE(api) \
111 	IWL_QU_B_JF_B_FW_PRE __stringify(api) ".ucode"
112 #define IWL_QNJ_B_JF_B_MODULE_FIRMWARE(api)		\
113 	IWL_QNJ_B_JF_B_FW_PRE __stringify(api) ".ucode"
114 #define IWL_CC_A_MODULE_FIRMWARE(api)			\
115 	IWL_CC_A_FW_PRE __stringify(api) ".ucode"
116 #define IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(api) \
117 	IWL_22000_SO_A_JF_B_FW_PRE __stringify(api) ".ucode"
118 #define IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(api) \
119 	IWL_22000_SO_A_HR_B_FW_PRE __stringify(api) ".ucode"
120 #define IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(api) \
121 	IWL_22000_SO_A_GF_A_FW_PRE __stringify(api) ".ucode"
122 #define IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(api) \
123 	IWL_22000_TY_A_GF_A_FW_PRE __stringify(api) ".ucode"
124 #define IWL_SNJ_A_GF4_A_MODULE_FIRMWARE(api) \
125 	IWL_SNJ_A_GF4_A_FW_PRE __stringify(api) ".ucode"
126 #define IWL_SNJ_A_GF_A_MODULE_FIRMWARE(api) \
127 	IWL_SNJ_A_GF_A_FW_PRE __stringify(api) ".ucode"
128 
129 static const struct iwl_base_params iwl_22000_base_params = {
130 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
131 	.num_of_queues = 512,
132 	.max_tfd_queue_size = 256,
133 	.shadow_ram_support = true,
134 	.led_compensation = 57,
135 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
136 	.max_event_log_size = 512,
137 	.shadow_reg_enable = true,
138 	.pcie_l1_allowed = true,
139 };
140 
141 static const struct iwl_base_params iwl_ax210_base_params = {
142 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
143 	.num_of_queues = 512,
144 	.max_tfd_queue_size = 65536,
145 	.shadow_ram_support = true,
146 	.led_compensation = 57,
147 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
148 	.max_event_log_size = 512,
149 	.shadow_reg_enable = true,
150 	.pcie_l1_allowed = true,
151 };
152 
153 static const struct iwl_ht_params iwl_22000_ht_params = {
154 	.stbc = true,
155 	.ldpc = true,
156 	.ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
157 };
158 
159 #define IWL_DEVICE_22000_COMMON						\
160 	.ucode_api_max = IWL_22000_UCODE_API_MAX,			\
161 	.ucode_api_min = IWL_22000_UCODE_API_MIN,			\
162 	.led_mode = IWL_LED_RF_STATE,					\
163 	.nvm_hw_section_num = 10,					\
164 	.non_shared_ant = ANT_B,					\
165 	.dccm_offset = IWL_22000_DCCM_OFFSET,				\
166 	.dccm_len = IWL_22000_DCCM_LEN,					\
167 	.dccm2_offset = IWL_22000_DCCM2_OFFSET,				\
168 	.dccm2_len = IWL_22000_DCCM2_LEN,				\
169 	.smem_offset = IWL_22000_SMEM_OFFSET,				\
170 	.smem_len = IWL_22000_SMEM_LEN,					\
171 	.features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM,		\
172 	.apmg_not_supported = true,					\
173 	.trans.mq_rx_supported = true,					\
174 	.vht_mu_mimo_supported = true,					\
175 	.mac_addr_from_csr = true,					\
176 	.ht_params = &iwl_22000_ht_params,				\
177 	.nvm_ver = IWL_22000_NVM_VERSION,				\
178 	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,		\
179 	.trans.use_tfh = true,						\
180 	.trans.rf_id = true,						\
181 	.trans.gen2 = true,						\
182 	.nvm_type = IWL_NVM_EXT,					\
183 	.dbgc_supported = true,						\
184 	.min_umac_error_event_table = 0x400000,				\
185 	.d3_debug_data_base_addr = 0x401000,				\
186 	.d3_debug_data_length = 60 * 1024,				\
187 	.mon_smem_regs = {						\
188 		.write_ptr = {						\
189 			.addr = LDBG_M2S_BUF_WPTR,			\
190 			.mask = LDBG_M2S_BUF_WPTR_VAL_MSK,		\
191 	},								\
192 		.cycle_cnt = {						\
193 			.addr = LDBG_M2S_BUF_WRAP_CNT,			\
194 			.mask = LDBG_M2S_BUF_WRAP_CNT_VAL_MSK,		\
195 		},							\
196 	}
197 
198 #define IWL_DEVICE_22500						\
199 	IWL_DEVICE_22000_COMMON,					\
200 	.trans.device_family = IWL_DEVICE_FAMILY_22000,			\
201 	.trans.base_params = &iwl_22000_base_params,			\
202 	.gp2_reg_addr = 0xa02c68,					\
203 	.mon_dram_regs = {						\
204 		.write_ptr = {						\
205 			.addr = MON_BUFF_WRPTR_VER2,			\
206 			.mask = 0xffffffff,				\
207 		},							\
208 		.cycle_cnt = {						\
209 			.addr = MON_BUFF_CYCLE_CNT_VER2,		\
210 			.mask = 0xffffffff,				\
211 		},							\
212 	}
213 
214 #define IWL_DEVICE_AX210						\
215 	IWL_DEVICE_22000_COMMON,					\
216 	.trans.umac_prph_offset = 0x300000,				\
217 	.trans.device_family = IWL_DEVICE_FAMILY_AX210,			\
218 	.trans.base_params = &iwl_ax210_base_params,			\
219 	.min_txq_size = 128,						\
220 	.gp2_reg_addr = 0xd02c68,					\
221 	.min_256_ba_txq_size = 512,					\
222 	.mon_dram_regs = {						\
223 		.write_ptr = {						\
224 			.addr = DBGC_CUR_DBGBUF_STATUS,			\
225 			.mask = DBGC_CUR_DBGBUF_STATUS_OFFSET_MSK,	\
226 		},							\
227 		.cycle_cnt = {						\
228 			.addr = DBGC_DBGBUF_WRAP_AROUND,		\
229 			.mask = 0xffffffff,				\
230 		},							\
231 		.cur_frag = {						\
232 			.addr = DBGC_CUR_DBGBUF_STATUS,			\
233 			.mask = DBGC_CUR_DBGBUF_STATUS_IDX_MSK,		\
234 		},							\
235 	}
236 
237 const struct iwl_cfg_trans_params iwl_qnj_trans_cfg = {
238 	.mq_rx_supported = true,
239 	.use_tfh = true,
240 	.rf_id = true,
241 	.gen2 = true,
242 	.device_family = IWL_DEVICE_FAMILY_22000,
243 	.base_params = &iwl_22000_base_params,
244 };
245 
246 const struct iwl_cfg_trans_params iwl_qu_trans_cfg = {
247 	.mq_rx_supported = true,
248 	.use_tfh = true,
249 	.rf_id = true,
250 	.gen2 = true,
251 	.device_family = IWL_DEVICE_FAMILY_22000,
252 	.base_params = &iwl_22000_base_params,
253 	.integrated = true,
254 	.xtal_latency = 5000,
255 	.ltr_delay = IWL_CFG_TRANS_LTR_DELAY_200US,
256 };
257 
258 const struct iwl_cfg_trans_params iwl_qu_medium_latency_trans_cfg = {
259 	.mq_rx_supported = true,
260 	.use_tfh = true,
261 	.rf_id = true,
262 	.gen2 = true,
263 	.device_family = IWL_DEVICE_FAMILY_22000,
264 	.base_params = &iwl_22000_base_params,
265 	.integrated = true,
266 	.xtal_latency = 1820,
267 	.ltr_delay = IWL_CFG_TRANS_LTR_DELAY_1820US,
268 };
269 
270 const struct iwl_cfg_trans_params iwl_qu_long_latency_trans_cfg = {
271 	.mq_rx_supported = true,
272 	.use_tfh = true,
273 	.rf_id = true,
274 	.gen2 = true,
275 	.device_family = IWL_DEVICE_FAMILY_22000,
276 	.base_params = &iwl_22000_base_params,
277 	.integrated = true,
278 	.xtal_latency = 12000,
279 	.low_latency_xtal = true,
280 	.ltr_delay = IWL_CFG_TRANS_LTR_DELAY_2500US,
281 };
282 
283 /*
284  * If the device doesn't support HE, no need to have that many buffers.
285  * 22000 devices can split multiple frames into a single RB, so fewer are
286  * needed; AX210 cannot (but use smaller RBs by default) - these sizes
287  * were picked according to 8 MSDUs inside 256 A-MSDUs in an A-MPDU, with
288  * additional overhead to account for processing time.
289  */
290 #define IWL_NUM_RBDS_NON_HE		512
291 #define IWL_NUM_RBDS_22000_HE		2048
292 #define IWL_NUM_RBDS_AX210_HE		4096
293 
294 /*
295  * All JF radio modules are part of the 9000 series, but the MAC part
296  * looks more like 22000.  That's why this device is here, but called
297  * 9560 nevertheless.
298  */
299 const struct iwl_cfg iwl9560_qu_b0_jf_b0_cfg = {
300 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
301 	IWL_DEVICE_22500,
302 	.num_rbds = IWL_NUM_RBDS_NON_HE,
303 };
304 
305 const struct iwl_cfg iwl9560_qu_c0_jf_b0_cfg = {
306 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
307 	IWL_DEVICE_22500,
308 	.num_rbds = IWL_NUM_RBDS_NON_HE,
309 };
310 
311 const struct iwl_cfg iwl9560_quz_a0_jf_b0_cfg = {
312 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
313 	IWL_DEVICE_22500,
314 	/*
315 	 * This device doesn't support receiving BlockAck with a large bitmap
316 	 * so we need to restrict the size of transmitted aggregation to the
317 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
318 	 */
319 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
320 	.num_rbds = IWL_NUM_RBDS_NON_HE,
321 };
322 
323 const struct iwl_cfg iwl9560_qnj_b0_jf_b0_cfg = {
324 	.fw_name_pre = IWL_QNJ_B_JF_B_FW_PRE,
325 	IWL_DEVICE_22500,
326 	/*
327 	 * This device doesn't support receiving BlockAck with a large bitmap
328 	 * so we need to restrict the size of transmitted aggregation to the
329 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
330 	 */
331 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
332 	.num_rbds = IWL_NUM_RBDS_NON_HE,
333 };
334 
335 const struct iwl_cfg_trans_params iwl_ax200_trans_cfg = {
336 	.device_family = IWL_DEVICE_FAMILY_22000,
337 	.base_params = &iwl_22000_base_params,
338 	.mq_rx_supported = true,
339 	.use_tfh = true,
340 	.rf_id = true,
341 	.gen2 = true,
342 	.bisr_workaround = 1,
343 };
344 
345 const char iwl_ax200_name[] = "Intel(R) Wi-Fi 6 AX200 160MHz";
346 
347 const char iwl_ax200_killer_1650w_name[] =
348 	"Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)";
349 const char iwl_ax200_killer_1650x_name[] =
350 	"Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)";
351 
352 const struct iwl_cfg iwl_ax101_cfg_qu_hr = {
353 	.name = "Intel(R) Wi-Fi 6 AX101",
354 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
355 	IWL_DEVICE_22500,
356 	/*
357 	 * This device doesn't support receiving BlockAck with a large bitmap
358 	 * so we need to restrict the size of transmitted aggregation to the
359 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
360 	 */
361 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
362 	.tx_with_siso_diversity = true,
363 	.num_rbds = IWL_NUM_RBDS_22000_HE,
364 };
365 
366 const struct iwl_cfg iwl_ax201_cfg_qu_hr = {
367 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
368 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
369 	IWL_DEVICE_22500,
370 	/*
371 	 * This device doesn't support receiving BlockAck with a large bitmap
372 	 * so we need to restrict the size of transmitted aggregation to the
373 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
374 	 */
375 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
376 	.num_rbds = IWL_NUM_RBDS_22000_HE,
377 };
378 
379 const struct iwl_cfg iwl_ax101_cfg_qu_c0_hr_b0 = {
380 	.name = "Intel(R) Wi-Fi 6 AX101",
381 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
382 	IWL_DEVICE_22500,
383 	/*
384 	 * This device doesn't support receiving BlockAck with a large bitmap
385 	 * so we need to restrict the size of transmitted aggregation to the
386 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
387 	 */
388 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
389 	.tx_with_siso_diversity = true,
390 	.num_rbds = IWL_NUM_RBDS_22000_HE,
391 };
392 
393 const struct iwl_cfg iwl_ax201_cfg_qu_c0_hr_b0 = {
394 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
395 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
396 	IWL_DEVICE_22500,
397 	/*
398 	 * This device doesn't support receiving BlockAck with a large bitmap
399 	 * so we need to restrict the size of transmitted aggregation to the
400 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
401 	 */
402 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
403 	.num_rbds = IWL_NUM_RBDS_22000_HE,
404 };
405 
406 const struct iwl_cfg iwl_ax101_cfg_quz_hr = {
407 	.name = "Intel(R) Wi-Fi 6 AX101",
408 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
409 	IWL_DEVICE_22500,
410 	/*
411 	 * This device doesn't support receiving BlockAck with a large bitmap
412 	 * so we need to restrict the size of transmitted aggregation to the
413 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
414 	 */
415 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
416 	.tx_with_siso_diversity = true,
417 	.num_rbds = IWL_NUM_RBDS_22000_HE,
418 };
419 
420 const struct iwl_cfg iwl_ax201_cfg_quz_hr = {
421 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
422 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
423 	IWL_DEVICE_22500,
424 	/*
425          * This device doesn't support receiving BlockAck with a large bitmap
426          * so we need to restrict the size of transmitted aggregation to the
427          * HT size; mac80211 would otherwise pick the HE max (256) by default.
428          */
429 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
430 	.num_rbds = IWL_NUM_RBDS_22000_HE,
431 };
432 
433 const struct iwl_cfg iwl_ax1650s_cfg_quz_hr = {
434 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
435 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
436 	IWL_DEVICE_22500,
437 	/*
438          * This device doesn't support receiving BlockAck with a large bitmap
439          * so we need to restrict the size of transmitted aggregation to the
440          * HT size; mac80211 would otherwise pick the HE max (256) by default.
441          */
442 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
443 	.num_rbds = IWL_NUM_RBDS_22000_HE,
444 };
445 
446 const struct iwl_cfg iwl_ax1650i_cfg_quz_hr = {
447 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
448 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
449 	IWL_DEVICE_22500,
450 	/*
451          * This device doesn't support receiving BlockAck with a large bitmap
452          * so we need to restrict the size of transmitted aggregation to the
453          * HT size; mac80211 would otherwise pick the HE max (256) by default.
454          */
455 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
456 	.num_rbds = IWL_NUM_RBDS_22000_HE,
457 };
458 
459 const struct iwl_cfg iwl_ax200_cfg_cc = {
460 	.fw_name_pre = IWL_CC_A_FW_PRE,
461 	IWL_DEVICE_22500,
462 	/*
463 	 * This device doesn't support receiving BlockAck with a large bitmap
464 	 * so we need to restrict the size of transmitted aggregation to the
465 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
466 	 */
467 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
468 	.num_rbds = IWL_NUM_RBDS_22000_HE,
469 };
470 
471 const struct iwl_cfg killer1650s_2ax_cfg_qu_b0_hr_b0 = {
472 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
473 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
474 	IWL_DEVICE_22500,
475 	/*
476 	 * This device doesn't support receiving BlockAck with a large bitmap
477 	 * so we need to restrict the size of transmitted aggregation to the
478 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
479 	 */
480 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
481 	.num_rbds = IWL_NUM_RBDS_22000_HE,
482 };
483 
484 const struct iwl_cfg killer1650i_2ax_cfg_qu_b0_hr_b0 = {
485 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
486 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
487 	IWL_DEVICE_22500,
488 	/*
489 	 * This device doesn't support receiving BlockAck with a large bitmap
490 	 * so we need to restrict the size of transmitted aggregation to the
491 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
492 	 */
493 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
494 	.num_rbds = IWL_NUM_RBDS_22000_HE,
495 };
496 
497 const struct iwl_cfg killer1650s_2ax_cfg_qu_c0_hr_b0 = {
498 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
499 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
500 	IWL_DEVICE_22500,
501 	/*
502 	 * This device doesn't support receiving BlockAck with a large bitmap
503 	 * so we need to restrict the size of transmitted aggregation to the
504 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
505 	 */
506 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
507 	.num_rbds = IWL_NUM_RBDS_22000_HE,
508 };
509 
510 const struct iwl_cfg killer1650i_2ax_cfg_qu_c0_hr_b0 = {
511 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
512 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
513 	IWL_DEVICE_22500,
514 	/*
515 	 * This device doesn't support receiving BlockAck with a large bitmap
516 	 * so we need to restrict the size of transmitted aggregation to the
517 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
518 	 */
519 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
520 	.num_rbds = IWL_NUM_RBDS_22000_HE,
521 };
522 
523 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_b0 = {
524 	.name = "Intel(R) Dual Band Wireless AX 22000",
525 	.fw_name_pre = IWL_22000_HR_B_FW_PRE,
526 	IWL_DEVICE_22500,
527 	/*
528 	 * This device doesn't support receiving BlockAck with a large bitmap
529 	 * so we need to restrict the size of transmitted aggregation to the
530 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
531 	 */
532 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
533 	.num_rbds = IWL_NUM_RBDS_22000_HE,
534 };
535 
536 const struct iwl_cfg iwlax210_2ax_cfg_so_jf_a0 = {
537 	.name = "Intel(R) Wireless-AC 9560 160MHz",
538 	.fw_name_pre = IWL_22000_SO_A_JF_B_FW_PRE,
539 	IWL_DEVICE_AX210,
540 	.num_rbds = IWL_NUM_RBDS_NON_HE,
541 };
542 
543 const struct iwl_cfg iwlax210_2ax_cfg_so_hr_a0 = {
544 	.name = "Intel(R) Wi-Fi 6 AX210 160MHz",
545 	.fw_name_pre = IWL_22000_SO_A_HR_B_FW_PRE,
546 	IWL_DEVICE_AX210,
547 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
548 };
549 
550 const struct iwl_cfg iwlax211_2ax_cfg_so_gf_a0 = {
551 	.name = "Intel(R) Wi-Fi 6 AX211 160MHz",
552 	.fw_name_pre = IWL_22000_SO_A_GF_A_FW_PRE,
553 	.uhb_supported = true,
554 	IWL_DEVICE_AX210,
555 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
556 };
557 
558 const struct iwl_cfg iwlax211_2ax_cfg_so_gf_a0_long = {
559 	.name = "Intel(R) Wi-Fi 6 AX211 160MHz",
560 	.fw_name_pre = IWL_22000_SO_A_GF_A_FW_PRE,
561 	.uhb_supported = true,
562 	IWL_DEVICE_AX210,
563 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
564 	.trans.xtal_latency = 12000,
565 	.trans.low_latency_xtal = true,
566 };
567 
568 const struct iwl_cfg iwlax210_2ax_cfg_ty_gf_a0 = {
569 	.name = "Intel(R) Wi-Fi 6 AX210 160MHz",
570 	.fw_name_pre = IWL_22000_TY_A_GF_A_FW_PRE,
571 	.uhb_supported = true,
572 	IWL_DEVICE_AX210,
573 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
574 };
575 
576 const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0 = {
577 	.name = "Intel(R) Wi-Fi 6 AX411 160MHz",
578 	.fw_name_pre = IWL_22000_SO_A_GF4_A_FW_PRE,
579 	.uhb_supported = true,
580 	IWL_DEVICE_AX210,
581 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
582 };
583 
584 const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0_long = {
585 	.name = "Intel(R) Wi-Fi 6 AX411 160MHz",
586 	.fw_name_pre = IWL_22000_SO_A_GF4_A_FW_PRE,
587 	.uhb_supported = true,
588 	IWL_DEVICE_AX210,
589 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
590 	.trans.xtal_latency = 12000,
591 	.trans.low_latency_xtal = true,
592 };
593 
594 const struct iwl_cfg iwlax411_2ax_cfg_sosnj_gf4_a0 = {
595 	.name = "Intel(R) Wi-Fi 6 AX411 160MHz",
596 	.fw_name_pre = IWL_SNJ_A_GF4_A_FW_PRE,
597 	.uhb_supported = true,
598 	IWL_DEVICE_AX210,
599 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
600 };
601 
602 const struct iwl_cfg iwlax211_cfg_snj_gf_a0 = {
603 	.name = "Intel(R) Wi-Fi 6 AX211 160MHz",
604 	.fw_name_pre = IWL_SNJ_A_GF_A_FW_PRE,
605 	.uhb_supported = true,
606 	IWL_DEVICE_AX210,
607 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
608 };
609 
610 MODULE_FIRMWARE(IWL_22000_HR_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
611 MODULE_FIRMWARE(IWL_22000_JF_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
612 MODULE_FIRMWARE(IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
613 MODULE_FIRMWARE(IWL_QU_C_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
614 MODULE_FIRMWARE(IWL_QU_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
615 MODULE_FIRMWARE(IWL_QUZ_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
616 MODULE_FIRMWARE(IWL_QUZ_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
617 MODULE_FIRMWARE(IWL_QNJ_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
618 MODULE_FIRMWARE(IWL_CC_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
619 MODULE_FIRMWARE(IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
620 MODULE_FIRMWARE(IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
621 MODULE_FIRMWARE(IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
622 MODULE_FIRMWARE(IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
623 MODULE_FIRMWARE(IWL_SNJ_A_GF4_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
624 MODULE_FIRMWARE(IWL_SNJ_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
625