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 
58 /* Highest firmware API version supported */
59 #define IWL_22000_UCODE_API_MAX	50
60 
61 /* Lowest firmware API version supported */
62 #define IWL_22000_UCODE_API_MIN	39
63 
64 /* NVM versions */
65 #define IWL_22000_NVM_VERSION		0x0a1d
66 
67 /* Memory offsets and lengths */
68 #define IWL_22000_DCCM_OFFSET		0x800000 /* LMAC1 */
69 #define IWL_22000_DCCM_LEN		0x10000 /* LMAC1 */
70 #define IWL_22000_DCCM2_OFFSET		0x880000
71 #define IWL_22000_DCCM2_LEN		0x8000
72 #define IWL_22000_SMEM_OFFSET		0x400000
73 #define IWL_22000_SMEM_LEN		0xD0000
74 
75 #define IWL_22000_JF_FW_PRE		"iwlwifi-Qu-a0-jf-b0-"
76 #define IWL_22000_HR_FW_PRE		"iwlwifi-Qu-a0-hr-a0-"
77 #define IWL_22000_HR_CDB_FW_PRE		"iwlwifi-QuIcp-z0-hrcdb-a0-"
78 #define IWL_22000_HR_A_F0_FW_PRE	"iwlwifi-QuQnj-f0-hr-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_22000_HR_A0_FW_PRE		"iwlwifi-QuQnj-a0-hr-a0-"
82 #define IWL_QU_C_HR_B_FW_PRE		"iwlwifi-Qu-c0-hr-b0-"
83 #define IWL_QU_B_JF_B_FW_PRE		"iwlwifi-Qu-b0-jf-b0-"
84 #define IWL_QU_C_JF_B_FW_PRE		"iwlwifi-Qu-c0-jf-b0-"
85 #define IWL_QUZ_A_HR_B_FW_PRE		"iwlwifi-QuZ-a0-hr-b0-"
86 #define IWL_QUZ_A_JF_B_FW_PRE		"iwlwifi-QuZ-a0-jf-b0-"
87 #define IWL_QNJ_B_JF_B_FW_PRE		"iwlwifi-QuQnj-b0-jf-b0-"
88 #define IWL_CC_A_FW_PRE			"iwlwifi-cc-a0-"
89 #define IWL_22000_SO_A_JF_B_FW_PRE	"iwlwifi-so-a0-jf-b0-"
90 #define IWL_22000_SO_A_HR_B_FW_PRE      "iwlwifi-so-a0-hr-b0-"
91 #define IWL_22000_SO_A_GF_A_FW_PRE      "iwlwifi-so-a0-gf-a0-"
92 #define IWL_22000_TY_A_GF_A_FW_PRE      "iwlwifi-ty-a0-gf-a0-"
93 #define IWL_22000_SO_A_GF4_A_FW_PRE     "iwlwifi-so-a0-gf4-a0-"
94 
95 #define IWL_22000_HR_MODULE_FIRMWARE(api) \
96 	IWL_22000_HR_FW_PRE __stringify(api) ".ucode"
97 #define IWL_22000_JF_MODULE_FIRMWARE(api) \
98 	IWL_22000_JF_FW_PRE __stringify(api) ".ucode"
99 #define IWL_22000_HR_A_F0_QNJ_MODULE_FIRMWARE(api) \
100 	IWL_22000_HR_A_F0_FW_PRE __stringify(api) ".ucode"
101 #define IWL_22000_QU_B_HR_B_MODULE_FIRMWARE(api) \
102 	IWL_22000_QU_B_HR_B_FW_PRE __stringify(api) ".ucode"
103 #define IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(api)	\
104 	IWL_22000_HR_B_FW_PRE __stringify(api) ".ucode"
105 #define IWL_22000_HR_A0_QNJ_MODULE_FIRMWARE(api) \
106 	IWL_22000_HR_A0_FW_PRE __stringify(api) ".ucode"
107 #define IWL_QUZ_A_HR_B_MODULE_FIRMWARE(api) \
108 	IWL_QUZ_A_HR_B_FW_PRE __stringify(api) ".ucode"
109 #define IWL_QUZ_A_JF_B_MODULE_FIRMWARE(api) \
110 	IWL_QUZ_A_JF_B_FW_PRE __stringify(api) ".ucode"
111 #define IWL_QU_C_HR_B_MODULE_FIRMWARE(api) \
112 	IWL_QU_C_HR_B_FW_PRE __stringify(api) ".ucode"
113 #define IWL_QU_B_JF_B_MODULE_FIRMWARE(api) \
114 	IWL_QU_B_JF_B_FW_PRE __stringify(api) ".ucode"
115 #define IWL_QNJ_B_JF_B_MODULE_FIRMWARE(api)		\
116 	IWL_QNJ_B_JF_B_FW_PRE __stringify(api) ".ucode"
117 #define IWL_CC_A_MODULE_FIRMWARE(api)			\
118 	IWL_CC_A_FW_PRE __stringify(api) ".ucode"
119 #define IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(api) \
120 	IWL_22000_SO_A_JF_B_FW_PRE __stringify(api) ".ucode"
121 #define IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(api) \
122 	IWL_22000_SO_A_HR_B_FW_PRE __stringify(api) ".ucode"
123 #define IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(api) \
124 	IWL_22000_SO_A_GF_A_FW_PRE __stringify(api) ".ucode"
125 #define IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(api) \
126 	IWL_22000_TY_A_GF_A_FW_PRE __stringify(api) ".ucode"
127 
128 static const struct iwl_base_params iwl_22000_base_params = {
129 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
130 	.num_of_queues = 512,
131 	.max_tfd_queue_size = 256,
132 	.shadow_ram_support = true,
133 	.led_compensation = 57,
134 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
135 	.max_event_log_size = 512,
136 	.shadow_reg_enable = true,
137 	.pcie_l1_allowed = true,
138 };
139 
140 static const struct iwl_base_params iwl_22560_base_params = {
141 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
142 	.num_of_queues = 512,
143 	.max_tfd_queue_size = 65536,
144 	.shadow_ram_support = true,
145 	.led_compensation = 57,
146 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
147 	.max_event_log_size = 512,
148 	.shadow_reg_enable = true,
149 	.pcie_l1_allowed = true,
150 };
151 
152 static const struct iwl_ht_params iwl_22000_ht_params = {
153 	.stbc = true,
154 	.ldpc = true,
155 	.ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
156 };
157 
158 #define IWL_DEVICE_22000_COMMON						\
159 	.ucode_api_max = IWL_22000_UCODE_API_MAX,			\
160 	.ucode_api_min = IWL_22000_UCODE_API_MIN,			\
161 	.led_mode = IWL_LED_RF_STATE,					\
162 	.nvm_hw_section_num = 10,					\
163 	.non_shared_ant = ANT_B,					\
164 	.dccm_offset = IWL_22000_DCCM_OFFSET,				\
165 	.dccm_len = IWL_22000_DCCM_LEN,					\
166 	.dccm2_offset = IWL_22000_DCCM2_OFFSET,				\
167 	.dccm2_len = IWL_22000_DCCM2_LEN,				\
168 	.smem_offset = IWL_22000_SMEM_OFFSET,				\
169 	.smem_len = IWL_22000_SMEM_LEN,					\
170 	.features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM,		\
171 	.apmg_not_supported = true,					\
172 	.trans.mq_rx_supported = true,					\
173 	.vht_mu_mimo_supported = true,					\
174 	.mac_addr_from_csr = true,					\
175 	.ht_params = &iwl_22000_ht_params,				\
176 	.nvm_ver = IWL_22000_NVM_VERSION,				\
177 	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,		\
178 	.trans.use_tfh = true,						\
179 	.trans.rf_id = true,						\
180 	.trans.gen2 = true,						\
181 	.nvm_type = IWL_NVM_EXT,					\
182 	.dbgc_supported = true,						\
183 	.min_umac_error_event_table = 0x400000,				\
184 	.d3_debug_data_base_addr = 0x401000,				\
185 	.d3_debug_data_length = 60 * 1024,				\
186 	.fw_mon_smem_write_ptr_addr = 0xa0c16c,				\
187 	.fw_mon_smem_write_ptr_msk = 0xfffff,				\
188 	.fw_mon_smem_cycle_cnt_ptr_addr = 0xa0c174,			\
189 	.fw_mon_smem_cycle_cnt_ptr_msk = 0xfffff
190 
191 #define IWL_DEVICE_22500						\
192 	IWL_DEVICE_22000_COMMON,					\
193 	.trans.device_family = IWL_DEVICE_FAMILY_22000,			\
194 	.trans.base_params = &iwl_22000_base_params,			\
195 	.trans.csr = &iwl_csr_v1,					\
196 	.gp2_reg_addr = 0xa02c68
197 
198 #define IWL_DEVICE_22560						\
199 	IWL_DEVICE_22000_COMMON,					\
200 	.trans.device_family = IWL_DEVICE_FAMILY_22560,			\
201 	.trans.base_params = &iwl_22560_base_params,			\
202 	.trans.csr = &iwl_csr_v2
203 
204 #define IWL_DEVICE_AX210						\
205 	IWL_DEVICE_22000_COMMON,					\
206 	.trans.umac_prph_offset = 0x300000,				\
207 	.trans.device_family = IWL_DEVICE_FAMILY_AX210,			\
208 	.trans.base_params = &iwl_22560_base_params,			\
209 	.trans.csr = &iwl_csr_v1,					\
210 	.min_txq_size = 128,						\
211 	.gp2_reg_addr = 0xd02c68,					\
212 	.min_256_ba_txq_size = 512
213 
214 const struct iwl_cfg iwl22000_2ac_cfg_hr = {
215 	.name = "Intel(R) Dual Band Wireless AC 22000",
216 	.fw_name_pre = IWL_22000_HR_FW_PRE,
217 	IWL_DEVICE_22500,
218 };
219 
220 const struct iwl_cfg iwl22000_2ac_cfg_hr_cdb = {
221 	.name = "Intel(R) Dual Band Wireless AC 22000",
222 	.fw_name_pre = IWL_22000_HR_CDB_FW_PRE,
223 	IWL_DEVICE_22500,
224 	.cdb = true,
225 };
226 
227 const struct iwl_cfg iwl22000_2ac_cfg_jf = {
228 	.name = "Intel(R) Dual Band Wireless AC 22000",
229 	.fw_name_pre = IWL_22000_JF_FW_PRE,
230 	IWL_DEVICE_22500,
231 };
232 
233 const struct iwl_cfg iwl_ax101_cfg_qu_hr = {
234 	.name = "Intel(R) Wi-Fi 6 AX101",
235 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
236 	IWL_DEVICE_22500,
237 	/*
238 	 * This device doesn't support receiving BlockAck with a large bitmap
239 	 * so we need to restrict the size of transmitted aggregation to the
240 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
241 	 */
242 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
243 };
244 
245 const struct iwl_cfg iwl_ax201_cfg_qu_hr = {
246 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
247 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
248 	IWL_DEVICE_22500,
249 	/*
250 	 * This device doesn't support receiving BlockAck with a large bitmap
251 	 * so we need to restrict the size of transmitted aggregation to the
252 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
253 	 */
254 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
255 };
256 
257 const struct iwl_cfg iwl_ax101_cfg_qu_c0_hr_b0 = {
258 	.name = "Intel(R) Wi-Fi 6 AX101",
259 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
260 	IWL_DEVICE_22500,
261 	/*
262 	 * This device doesn't support receiving BlockAck with a large bitmap
263 	 * so we need to restrict the size of transmitted aggregation to the
264 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
265 	 */
266 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
267 };
268 
269 const struct iwl_cfg iwl_ax201_cfg_qu_c0_hr_b0 = {
270 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
271 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
272 	IWL_DEVICE_22500,
273 	/*
274 	 * This device doesn't support receiving BlockAck with a large bitmap
275 	 * so we need to restrict the size of transmitted aggregation to the
276 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
277 	 */
278 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
279 };
280 
281 const struct iwl_cfg iwl_ax101_cfg_quz_hr = {
282 	.name = "Intel(R) Wi-Fi 6 AX101",
283 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
284 	IWL_DEVICE_22500,
285 	/*
286 	 * This device doesn't support receiving BlockAck with a large bitmap
287 	 * so we need to restrict the size of transmitted aggregation to the
288 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
289 	 */
290 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
291 };
292 
293 const struct iwl_cfg iwl_ax201_cfg_quz_hr = {
294 		.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
295 		.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
296 		IWL_DEVICE_22500,
297 		/*
298          * This device doesn't support receiving BlockAck with a large bitmap
299          * so we need to restrict the size of transmitted aggregation to the
300          * HT size; mac80211 would otherwise pick the HE max (256) by default.
301          */
302 		.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
303 };
304 
305 const struct iwl_cfg iwl_ax1650s_cfg_quz_hr = {
306 		.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
307 		.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
308 		IWL_DEVICE_22500,
309 		/*
310          * This device doesn't support receiving BlockAck with a large bitmap
311          * so we need to restrict the size of transmitted aggregation to the
312          * HT size; mac80211 would otherwise pick the HE max (256) by default.
313          */
314 		.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
315 };
316 
317 const struct iwl_cfg iwl_ax1650i_cfg_quz_hr = {
318 		.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
319 		.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
320 		IWL_DEVICE_22500,
321 		/*
322          * This device doesn't support receiving BlockAck with a large bitmap
323          * so we need to restrict the size of transmitted aggregation to the
324          * HT size; mac80211 would otherwise pick the HE max (256) by default.
325          */
326 		.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
327 };
328 
329 const struct iwl_cfg iwl_ax200_cfg_cc = {
330 	.name = "Intel(R) Wi-Fi 6 AX200 160MHz",
331 	.fw_name_pre = IWL_CC_A_FW_PRE,
332 	IWL_DEVICE_22500,
333 	/*
334 	 * This device doesn't support receiving BlockAck with a large bitmap
335 	 * so we need to restrict the size of transmitted aggregation to the
336 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
337 	 */
338 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
339 	.trans.bisr_workaround = 1,
340 };
341 
342 const struct iwl_cfg killer1650x_2ax_cfg = {
343 	.name = "Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)",
344 	.fw_name_pre = IWL_CC_A_FW_PRE,
345 	IWL_DEVICE_22500,
346 	/*
347 	 * This device doesn't support receiving BlockAck with a large bitmap
348 	 * so we need to restrict the size of transmitted aggregation to the
349 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
350 	 */
351 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
352 	.trans.bisr_workaround = 1,
353 };
354 
355 const struct iwl_cfg killer1650w_2ax_cfg = {
356 	.name = "Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)",
357 	.fw_name_pre = IWL_CC_A_FW_PRE,
358 	IWL_DEVICE_22500,
359 	/*
360 	 * This device doesn't support receiving BlockAck with a large bitmap
361 	 * so we need to restrict the size of transmitted aggregation to the
362 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
363 	 */
364 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
365 	.trans.bisr_workaround = 1,
366 };
367 
368 /*
369  * All JF radio modules are part of the 9000 series, but the MAC part
370  * looks more like 22000.  That's why this device is here, but called
371  * 9560 nevertheless.
372  */
373 const struct iwl_cfg iwl9461_2ac_cfg_qu_b0_jf_b0 = {
374 	.name = "Intel(R) Wireless-AC 9461",
375 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
376 	IWL_DEVICE_22500,
377 };
378 
379 const struct iwl_cfg iwl9462_2ac_cfg_qu_b0_jf_b0 = {
380 	.name = "Intel(R) Wireless-AC 9462",
381 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
382 	IWL_DEVICE_22500,
383 };
384 
385 const struct iwl_cfg iwl9560_2ac_cfg_qu_b0_jf_b0 = {
386 	.name = "Intel(R) Wireless-AC 9560",
387 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
388 	IWL_DEVICE_22500,
389 };
390 
391 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_b0_jf_b0 = {
392 	.name = "Intel(R) Wireless-AC 9560 160MHz",
393 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
394 	IWL_DEVICE_22500,
395 };
396 
397 const struct iwl_cfg iwl9461_2ac_cfg_qu_c0_jf_b0 = {
398 	.name = "Intel(R) Wireless-AC 9461",
399 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
400 	IWL_DEVICE_22500,
401 };
402 
403 const struct iwl_cfg iwl9462_2ac_cfg_qu_c0_jf_b0 = {
404 	.name = "Intel(R) Wireless-AC 9462",
405 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
406 	IWL_DEVICE_22500,
407 };
408 
409 const struct iwl_cfg iwl9560_2ac_cfg_qu_c0_jf_b0 = {
410 	.name = "Intel(R) Wireless-AC 9560",
411 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
412 	IWL_DEVICE_22500,
413 };
414 
415 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_c0_jf_b0 = {
416 	.name = "Intel(R) Wireless-AC 9560 160MHz",
417 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
418 	IWL_DEVICE_22500,
419 };
420 
421 const struct iwl_cfg iwl9560_2ac_cfg_qnj_jf_b0 = {
422 	.name = "Intel(R) Wireless-AC 9560 160MHz",
423 	.fw_name_pre = IWL_QNJ_B_JF_B_FW_PRE,
424 	IWL_DEVICE_22500,
425 	/*
426 	 * This device doesn't support receiving BlockAck with a large bitmap
427 	 * so we need to restrict the size of transmitted aggregation to the
428 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
429 	 */
430 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
431 };
432 
433 const struct iwl_cfg iwl9560_2ac_cfg_quz_a0_jf_b0_soc = {
434 	.name = "Intel(R) Wireless-AC 9560 160MHz",
435 	.fw_name_pre = IWL_QUZ_A_JF_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 	.integrated = true,
444 	.soc_latency = 5000,
445 };
446 
447 const struct iwl_cfg iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc = {
448 	.name = "Intel(R) Wireless-AC 9560 160MHz",
449 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
450 	IWL_DEVICE_22500,
451 	/*
452 	 * This device doesn't support receiving BlockAck with a large bitmap
453 	 * so we need to restrict the size of transmitted aggregation to the
454 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
455 	 */
456 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
457 	.integrated = true,
458 	.soc_latency = 5000,
459 };
460 
461 const struct iwl_cfg iwl9461_2ac_cfg_quz_a0_jf_b0_soc = {
462 	.name = "Intel(R) Dual Band Wireless AC 9461",
463 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
464 	IWL_DEVICE_22500,
465 	/*
466 	 * This device doesn't support receiving BlockAck with a large bitmap
467 	 * so we need to restrict the size of transmitted aggregation to the
468 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
469 	 */
470 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
471 	.integrated = true,
472 	.soc_latency = 5000,
473 };
474 
475 const struct iwl_cfg iwl9462_2ac_cfg_quz_a0_jf_b0_soc = {
476 	.name = "Intel(R) Dual Band Wireless AC 9462",
477 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
478 	IWL_DEVICE_22500,
479 	/*
480 	 * This device doesn't support receiving BlockAck with a large bitmap
481 	 * so we need to restrict the size of transmitted aggregation to the
482 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
483 	 */
484 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
485 	.integrated = true,
486 	.soc_latency = 5000,
487 };
488 
489 const struct iwl_cfg iwl9560_killer_s_2ac_cfg_quz_a0_jf_b0_soc = {
490 	.name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
491 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
492 	IWL_DEVICE_22500,
493 	/*
494 	 * This device doesn't support receiving BlockAck with a large bitmap
495 	 * so we need to restrict the size of transmitted aggregation to the
496 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
497 	 */
498 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
499 	.integrated = true,
500 	.soc_latency = 5000,
501 };
502 
503 const struct iwl_cfg iwl9560_killer_i_2ac_cfg_quz_a0_jf_b0_soc = {
504 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
505 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
506 	IWL_DEVICE_22500,
507 	/*
508 	 * This device doesn't support receiving BlockAck with a large bitmap
509 	 * so we need to restrict the size of transmitted aggregation to the
510 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
511 	 */
512 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
513 	.integrated = true,
514 	.soc_latency = 5000,
515 };
516 
517 const struct iwl_cfg killer1550i_2ac_cfg_qu_b0_jf_b0 = {
518 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
519 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
520 	IWL_DEVICE_22500,
521 };
522 
523 const struct iwl_cfg killer1550s_2ac_cfg_qu_b0_jf_b0 = {
524 	.name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
525 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
526 	IWL_DEVICE_22500,
527 };
528 
529 const struct iwl_cfg killer1650s_2ax_cfg_qu_b0_hr_b0 = {
530 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
531 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
532 	IWL_DEVICE_22500,
533 	/*
534 	 * This device doesn't support receiving BlockAck with a large bitmap
535 	 * so we need to restrict the size of transmitted aggregation to the
536 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
537 	 */
538 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
539 };
540 
541 const struct iwl_cfg killer1650i_2ax_cfg_qu_b0_hr_b0 = {
542 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
543 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
544 	IWL_DEVICE_22500,
545 	/*
546 	 * This device doesn't support receiving BlockAck with a large bitmap
547 	 * so we need to restrict the size of transmitted aggregation to the
548 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
549 	 */
550 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
551 };
552 
553 const struct iwl_cfg killer1650s_2ax_cfg_qu_c0_hr_b0 = {
554 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
555 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
556 	IWL_DEVICE_22500,
557 	/*
558 	 * This device doesn't support receiving BlockAck with a large bitmap
559 	 * so we need to restrict the size of transmitted aggregation to the
560 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
561 	 */
562 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
563 };
564 
565 const struct iwl_cfg killer1650i_2ax_cfg_qu_c0_hr_b0 = {
566 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
567 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
568 	IWL_DEVICE_22500,
569 	/*
570 	 * This device doesn't support receiving BlockAck with a large bitmap
571 	 * so we need to restrict the size of transmitted aggregation to the
572 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
573 	 */
574 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
575 };
576 
577 const struct iwl_cfg iwl22000_2ax_cfg_jf = {
578 	.name = "Intel(R) Dual Band Wireless AX 22000",
579 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
580 	IWL_DEVICE_22500,
581 	/*
582 	 * This device doesn't support receiving BlockAck with a large bitmap
583 	 * so we need to restrict the size of transmitted aggregation to the
584 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
585 	 */
586 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
587 };
588 
589 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0_f0 = {
590 	.name = "Intel(R) Dual Band Wireless AX 22000",
591 	.fw_name_pre = IWL_22000_HR_A_F0_FW_PRE,
592 	IWL_DEVICE_22500,
593 	/*
594 	 * This device doesn't support receiving BlockAck with a large bitmap
595 	 * so we need to restrict the size of transmitted aggregation to the
596 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
597 	 */
598 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
599 };
600 
601 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_b0 = {
602 	.name = "Intel(R) Dual Band Wireless AX 22000",
603 	.fw_name_pre = IWL_22000_HR_B_FW_PRE,
604 	IWL_DEVICE_22500,
605 	/*
606 	 * This device doesn't support receiving BlockAck with a large bitmap
607 	 * so we need to restrict the size of transmitted aggregation to the
608 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
609 	 */
610 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
611 };
612 
613 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0 = {
614 	.name = "Intel(R) Dual Band Wireless AX 22000",
615 	.fw_name_pre = IWL_22000_HR_A0_FW_PRE,
616 	IWL_DEVICE_22500,
617 	/*
618 	 * This device doesn't support receiving BlockAck with a large bitmap
619 	 * so we need to restrict the size of transmitted aggregation to the
620 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
621 	 */
622 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
623 };
624 
625 const struct iwl_cfg iwlax210_2ax_cfg_so_jf_a0 = {
626 	.name = "Intel(R) Wireless-AC 9560 160MHz",
627 	.fw_name_pre = IWL_22000_SO_A_JF_B_FW_PRE,
628 	IWL_DEVICE_AX210,
629 };
630 
631 const struct iwl_cfg iwlax210_2ax_cfg_so_hr_a0 = {
632 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
633 	.fw_name_pre = IWL_22000_SO_A_HR_B_FW_PRE,
634 	IWL_DEVICE_AX210,
635 };
636 
637 const struct iwl_cfg iwlax211_2ax_cfg_so_gf_a0 = {
638 	.name = "Intel(R) Wi-Fi 7 AX211 160MHz",
639 	.fw_name_pre = IWL_22000_SO_A_GF_A_FW_PRE,
640 	.uhb_supported = true,
641 	IWL_DEVICE_AX210,
642 };
643 
644 const struct iwl_cfg iwlax210_2ax_cfg_ty_gf_a0 = {
645 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
646 	.fw_name_pre = IWL_22000_TY_A_GF_A_FW_PRE,
647 	.uhb_supported = true,
648 	IWL_DEVICE_AX210,
649 };
650 
651 const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0 = {
652 	.name = "Intel(R) Wi-Fi 7 AX411 160MHz",
653 	.fw_name_pre = IWL_22000_SO_A_GF4_A_FW_PRE,
654 	IWL_DEVICE_AX210,
655 };
656 
657 MODULE_FIRMWARE(IWL_22000_HR_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
658 MODULE_FIRMWARE(IWL_22000_JF_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
659 MODULE_FIRMWARE(IWL_22000_HR_A_F0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
660 MODULE_FIRMWARE(IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
661 MODULE_FIRMWARE(IWL_22000_HR_A0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
662 MODULE_FIRMWARE(IWL_QU_C_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
663 MODULE_FIRMWARE(IWL_QU_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
664 MODULE_FIRMWARE(IWL_QUZ_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
665 MODULE_FIRMWARE(IWL_QUZ_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
666 MODULE_FIRMWARE(IWL_QNJ_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
667 MODULE_FIRMWARE(IWL_CC_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
668 MODULE_FIRMWARE(IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
669 MODULE_FIRMWARE(IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
670 MODULE_FIRMWARE(IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
671 MODULE_FIRMWARE(IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
672