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	52
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_HR_A_F0_FW_PRE	"iwlwifi-QuQnj-f0-hr-a0-"
80 #define IWL_22000_QU_B_HR_B_FW_PRE	"iwlwifi-Qu-b0-hr-b0-"
81 #define IWL_22000_HR_B_FW_PRE		"iwlwifi-QuQnj-b0-hr-b0-"
82 #define IWL_22000_HR_A0_FW_PRE		"iwlwifi-QuQnj-a0-hr-a0-"
83 #define IWL_QU_C_HR_B_FW_PRE		"iwlwifi-Qu-c0-hr-b0-"
84 #define IWL_QU_B_JF_B_FW_PRE		"iwlwifi-Qu-b0-jf-b0-"
85 #define IWL_QU_C_JF_B_FW_PRE		"iwlwifi-Qu-c0-jf-b0-"
86 #define IWL_QUZ_A_HR_B_FW_PRE		"iwlwifi-QuZ-a0-hr-b0-"
87 #define IWL_QUZ_A_JF_B_FW_PRE		"iwlwifi-QuZ-a0-jf-b0-"
88 #define IWL_QNJ_B_JF_B_FW_PRE		"iwlwifi-QuQnj-b0-jf-b0-"
89 #define IWL_CC_A_FW_PRE			"iwlwifi-cc-a0-"
90 #define IWL_22000_SO_A_JF_B_FW_PRE	"iwlwifi-so-a0-jf-b0-"
91 #define IWL_22000_SO_A_HR_B_FW_PRE      "iwlwifi-so-a0-hr-b0-"
92 #define IWL_22000_SO_A_GF_A_FW_PRE      "iwlwifi-so-a0-gf-a0-"
93 #define IWL_22000_TY_A_GF_A_FW_PRE      "iwlwifi-ty-a0-gf-a0-"
94 #define IWL_22000_SO_A_GF4_A_FW_PRE     "iwlwifi-so-a0-gf4-a0-"
95 #define IWL_22000_SOSNJ_A_GF4_A_FW_PRE  "iwlwifi-SoSnj-a0-gf4-a0-"
96 
97 #define IWL_22000_HR_MODULE_FIRMWARE(api) \
98 	IWL_22000_HR_FW_PRE __stringify(api) ".ucode"
99 #define IWL_22000_JF_MODULE_FIRMWARE(api) \
100 	IWL_22000_JF_FW_PRE __stringify(api) ".ucode"
101 #define IWL_22000_HR_A_F0_QNJ_MODULE_FIRMWARE(api) \
102 	IWL_22000_HR_A_F0_FW_PRE __stringify(api) ".ucode"
103 #define IWL_22000_QU_B_HR_B_MODULE_FIRMWARE(api) \
104 	IWL_22000_QU_B_HR_B_FW_PRE __stringify(api) ".ucode"
105 #define IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(api)	\
106 	IWL_22000_HR_B_FW_PRE __stringify(api) ".ucode"
107 #define IWL_22000_HR_A0_QNJ_MODULE_FIRMWARE(api) \
108 	IWL_22000_HR_A0_FW_PRE __stringify(api) ".ucode"
109 #define IWL_QUZ_A_HR_B_MODULE_FIRMWARE(api) \
110 	IWL_QUZ_A_HR_B_FW_PRE __stringify(api) ".ucode"
111 #define IWL_QUZ_A_JF_B_MODULE_FIRMWARE(api) \
112 	IWL_QUZ_A_JF_B_FW_PRE __stringify(api) ".ucode"
113 #define IWL_QU_C_HR_B_MODULE_FIRMWARE(api) \
114 	IWL_QU_C_HR_B_FW_PRE __stringify(api) ".ucode"
115 #define IWL_QU_B_JF_B_MODULE_FIRMWARE(api) \
116 	IWL_QU_B_JF_B_FW_PRE __stringify(api) ".ucode"
117 #define IWL_QNJ_B_JF_B_MODULE_FIRMWARE(api)		\
118 	IWL_QNJ_B_JF_B_FW_PRE __stringify(api) ".ucode"
119 #define IWL_CC_A_MODULE_FIRMWARE(api)			\
120 	IWL_CC_A_FW_PRE __stringify(api) ".ucode"
121 #define IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(api) \
122 	IWL_22000_SO_A_JF_B_FW_PRE __stringify(api) ".ucode"
123 #define IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(api) \
124 	IWL_22000_SO_A_HR_B_FW_PRE __stringify(api) ".ucode"
125 #define IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(api) \
126 	IWL_22000_SO_A_GF_A_FW_PRE __stringify(api) ".ucode"
127 #define IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(api) \
128 	IWL_22000_TY_A_GF_A_FW_PRE __stringify(api) ".ucode"
129 
130 static const struct iwl_base_params iwl_22000_base_params = {
131 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
132 	.num_of_queues = 512,
133 	.max_tfd_queue_size = 256,
134 	.shadow_ram_support = true,
135 	.led_compensation = 57,
136 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
137 	.max_event_log_size = 512,
138 	.shadow_reg_enable = true,
139 	.pcie_l1_allowed = true,
140 };
141 
142 static const struct iwl_base_params iwl_ax210_base_params = {
143 	.eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
144 	.num_of_queues = 512,
145 	.max_tfd_queue_size = 65536,
146 	.shadow_ram_support = true,
147 	.led_compensation = 57,
148 	.wd_timeout = IWL_LONG_WD_TIMEOUT,
149 	.max_event_log_size = 512,
150 	.shadow_reg_enable = true,
151 	.pcie_l1_allowed = true,
152 };
153 
154 static const struct iwl_ht_params iwl_22000_ht_params = {
155 	.stbc = true,
156 	.ldpc = true,
157 	.ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
158 };
159 
160 #define IWL_DEVICE_22000_COMMON						\
161 	.ucode_api_max = IWL_22000_UCODE_API_MAX,			\
162 	.ucode_api_min = IWL_22000_UCODE_API_MIN,			\
163 	.led_mode = IWL_LED_RF_STATE,					\
164 	.nvm_hw_section_num = 10,					\
165 	.non_shared_ant = ANT_B,					\
166 	.dccm_offset = IWL_22000_DCCM_OFFSET,				\
167 	.dccm_len = IWL_22000_DCCM_LEN,					\
168 	.dccm2_offset = IWL_22000_DCCM2_OFFSET,				\
169 	.dccm2_len = IWL_22000_DCCM2_LEN,				\
170 	.smem_offset = IWL_22000_SMEM_OFFSET,				\
171 	.smem_len = IWL_22000_SMEM_LEN,					\
172 	.features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM,		\
173 	.apmg_not_supported = true,					\
174 	.trans.mq_rx_supported = true,					\
175 	.vht_mu_mimo_supported = true,					\
176 	.mac_addr_from_csr = true,					\
177 	.ht_params = &iwl_22000_ht_params,				\
178 	.nvm_ver = IWL_22000_NVM_VERSION,				\
179 	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,		\
180 	.trans.use_tfh = true,						\
181 	.trans.rf_id = true,						\
182 	.trans.gen2 = true,						\
183 	.nvm_type = IWL_NVM_EXT,					\
184 	.dbgc_supported = true,						\
185 	.min_umac_error_event_table = 0x400000,				\
186 	.d3_debug_data_base_addr = 0x401000,				\
187 	.d3_debug_data_length = 60 * 1024,				\
188 	.mon_smem_regs = {						\
189 		.write_ptr = {						\
190 			.addr = LDBG_M2S_BUF_WPTR,			\
191 			.mask = LDBG_M2S_BUF_WPTR_VAL_MSK,		\
192 	},								\
193 		.cycle_cnt = {						\
194 			.addr = LDBG_M2S_BUF_WRAP_CNT,			\
195 			.mask = LDBG_M2S_BUF_WRAP_CNT_VAL_MSK,		\
196 		},							\
197 	}
198 
199 #define IWL_DEVICE_22500						\
200 	IWL_DEVICE_22000_COMMON,					\
201 	.trans.device_family = IWL_DEVICE_FAMILY_22000,			\
202 	.trans.base_params = &iwl_22000_base_params,			\
203 	.gp2_reg_addr = 0xa02c68,					\
204 	.mon_dram_regs = {						\
205 		.write_ptr = {						\
206 			.addr = MON_BUFF_WRPTR_VER2,			\
207 			.mask = 0xffffffff,				\
208 		},							\
209 		.cycle_cnt = {						\
210 			.addr = MON_BUFF_CYCLE_CNT_VER2,		\
211 			.mask = 0xffffffff,				\
212 		},							\
213 	}
214 
215 #define IWL_DEVICE_AX210						\
216 	IWL_DEVICE_22000_COMMON,					\
217 	.trans.umac_prph_offset = 0x300000,				\
218 	.trans.device_family = IWL_DEVICE_FAMILY_AX210,			\
219 	.trans.base_params = &iwl_ax210_base_params,			\
220 	.min_txq_size = 128,						\
221 	.gp2_reg_addr = 0xd02c68,					\
222 	.min_256_ba_txq_size = 512,					\
223 	.mon_dram_regs = {						\
224 		.write_ptr = {						\
225 			.addr = DBGC_CUR_DBGBUF_STATUS,			\
226 			.mask = DBGC_CUR_DBGBUF_STATUS_OFFSET_MSK,	\
227 		},							\
228 		.cycle_cnt = {						\
229 			.addr = DBGC_DBGBUF_WRAP_AROUND,		\
230 			.mask = 0xffffffff,				\
231 		},							\
232 		.cur_frag = {						\
233 			.addr = DBGC_CUR_DBGBUF_STATUS,			\
234 			.mask = DBGC_CUR_DBGBUF_STATUS_IDX_MSK,		\
235 		},							\
236 	}
237 
238 /*
239  * If the device doesn't support HE, no need to have that many buffers.
240  * 22000 devices can split multiple frames into a single RB, so fewer are
241  * needed; AX210 cannot (but use smaller RBs by default) - these sizes
242  * were picked according to 8 MSDUs inside 256 A-MSDUs in an A-MPDU, with
243  * additional overhead to account for processing time.
244  */
245 #define IWL_NUM_RBDS_NON_HE		512
246 #define IWL_NUM_RBDS_22000_HE		2048
247 #define IWL_NUM_RBDS_AX210_HE		4096
248 
249 const struct iwl_cfg_trans_params iwl_ax200_trans_cfg = {
250 	.device_family = IWL_DEVICE_FAMILY_22000,
251 	.base_params = &iwl_22000_base_params,
252 	.mq_rx_supported = true,
253 	.use_tfh = true,
254 	.rf_id = true,
255 	.gen2 = true,
256 	.bisr_workaround = 1,
257 };
258 
259 const char iwl_ax200_name[] = "Intel(R) Wi-Fi 6 AX200 160MHz";
260 
261 const char iwl_ax200_killer_1650w_name[] =
262 	"Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)";
263 const char iwl_ax200_killer_1650x_name[] =
264 	"Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)";
265 
266 const struct iwl_cfg iwl_ax101_cfg_qu_hr = {
267 	.name = "Intel(R) Wi-Fi 6 AX101",
268 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
269 	IWL_DEVICE_22500,
270 	/*
271 	 * This device doesn't support receiving BlockAck with a large bitmap
272 	 * so we need to restrict the size of transmitted aggregation to the
273 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
274 	 */
275 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
276 	.tx_with_siso_diversity = true,
277 	.num_rbds = IWL_NUM_RBDS_22000_HE,
278 };
279 
280 const struct iwl_cfg iwl_ax201_cfg_qu_hr = {
281 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
282 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
283 	IWL_DEVICE_22500,
284 	/*
285 	 * This device doesn't support receiving BlockAck with a large bitmap
286 	 * so we need to restrict the size of transmitted aggregation to the
287 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
288 	 */
289 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
290 	.num_rbds = IWL_NUM_RBDS_22000_HE,
291 };
292 
293 const struct iwl_cfg iwl_ax101_cfg_qu_c0_hr_b0 = {
294 	.name = "Intel(R) Wi-Fi 6 AX101",
295 	.fw_name_pre = IWL_QU_C_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 	.num_rbds = IWL_NUM_RBDS_22000_HE,
304 };
305 
306 const struct iwl_cfg iwl_ax201_cfg_qu_c0_hr_b0 = {
307 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
308 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
309 	IWL_DEVICE_22500,
310 	/*
311 	 * This device doesn't support receiving BlockAck with a large bitmap
312 	 * so we need to restrict the size of transmitted aggregation to the
313 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
314 	 */
315 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
316 	.num_rbds = IWL_NUM_RBDS_22000_HE,
317 };
318 
319 const struct iwl_cfg iwl_ax101_cfg_quz_hr = {
320 	.name = "Intel(R) Wi-Fi 6 AX101",
321 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
322 	IWL_DEVICE_22500,
323 	/*
324 	 * This device doesn't support receiving BlockAck with a large bitmap
325 	 * so we need to restrict the size of transmitted aggregation to the
326 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
327 	 */
328 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
329 	.num_rbds = IWL_NUM_RBDS_22000_HE,
330 };
331 
332 const struct iwl_cfg iwl_ax201_cfg_quz_hr = {
333 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
334 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
335 	IWL_DEVICE_22500,
336 	/*
337          * This device doesn't support receiving BlockAck with a large bitmap
338          * so we need to restrict the size of transmitted aggregation to the
339          * HT size; mac80211 would otherwise pick the HE max (256) by default.
340          */
341 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
342 	.num_rbds = IWL_NUM_RBDS_22000_HE,
343 };
344 
345 const struct iwl_cfg iwl_ax1650s_cfg_quz_hr = {
346 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
347 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
348 	IWL_DEVICE_22500,
349 	/*
350          * This device doesn't support receiving BlockAck with a large bitmap
351          * so we need to restrict the size of transmitted aggregation to the
352          * HT size; mac80211 would otherwise pick the HE max (256) by default.
353          */
354 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
355 	.num_rbds = IWL_NUM_RBDS_22000_HE,
356 };
357 
358 const struct iwl_cfg iwl_ax1650i_cfg_quz_hr = {
359 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
360 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
361 	IWL_DEVICE_22500,
362 	/*
363          * This device doesn't support receiving BlockAck with a large bitmap
364          * so we need to restrict the size of transmitted aggregation to the
365          * HT size; mac80211 would otherwise pick the HE max (256) by default.
366          */
367 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
368 	.num_rbds = IWL_NUM_RBDS_22000_HE,
369 };
370 
371 const struct iwl_cfg iwl_ax200_cfg_cc = {
372 	.fw_name_pre = IWL_CC_A_FW_PRE,
373 	IWL_DEVICE_22500,
374 	/*
375 	 * This device doesn't support receiving BlockAck with a large bitmap
376 	 * so we need to restrict the size of transmitted aggregation to the
377 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
378 	 */
379 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
380 	.num_rbds = IWL_NUM_RBDS_22000_HE,
381 };
382 
383 /*
384  * All JF radio modules are part of the 9000 series, but the MAC part
385  * looks more like 22000.  That's why this device is here, but called
386  * 9560 nevertheless.
387  */
388 const struct iwl_cfg iwl9461_2ac_cfg_qu_b0_jf_b0 = {
389 	.name = "Intel(R) Wireless-AC 9461",
390 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
391 	IWL_DEVICE_22500,
392 	.num_rbds = IWL_NUM_RBDS_NON_HE,
393 };
394 
395 const struct iwl_cfg iwl9462_2ac_cfg_qu_b0_jf_b0 = {
396 	.name = "Intel(R) Wireless-AC 9462",
397 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
398 	IWL_DEVICE_22500,
399 	.num_rbds = IWL_NUM_RBDS_NON_HE,
400 };
401 
402 const struct iwl_cfg iwl9560_2ac_cfg_qu_b0_jf_b0 = {
403 	.name = "Intel(R) Wireless-AC 9560",
404 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
405 	IWL_DEVICE_22500,
406 	.num_rbds = IWL_NUM_RBDS_NON_HE,
407 };
408 
409 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_b0_jf_b0 = {
410 	.name = "Intel(R) Wireless-AC 9560 160MHz",
411 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
412 	IWL_DEVICE_22500,
413 	.num_rbds = IWL_NUM_RBDS_NON_HE,
414 };
415 
416 const struct iwl_cfg iwl9461_2ac_cfg_qu_c0_jf_b0 = {
417 	.name = "Intel(R) Wireless-AC 9461",
418 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
419 	IWL_DEVICE_22500,
420 	.num_rbds = IWL_NUM_RBDS_NON_HE,
421 };
422 
423 const struct iwl_cfg iwl9462_2ac_cfg_qu_c0_jf_b0 = {
424 	.name = "Intel(R) Wireless-AC 9462",
425 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
426 	IWL_DEVICE_22500,
427 	.num_rbds = IWL_NUM_RBDS_NON_HE,
428 };
429 
430 const struct iwl_cfg iwl9560_2ac_cfg_qu_c0_jf_b0 = {
431 	.name = "Intel(R) Wireless-AC 9560",
432 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
433 	IWL_DEVICE_22500,
434 	.num_rbds = IWL_NUM_RBDS_NON_HE,
435 };
436 
437 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_c0_jf_b0 = {
438 	.name = "Intel(R) Wireless-AC 9560 160MHz",
439 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
440 	IWL_DEVICE_22500,
441 	.num_rbds = IWL_NUM_RBDS_NON_HE,
442 };
443 
444 const struct iwl_cfg iwl9560_2ac_cfg_qnj_jf_b0 = {
445 	.name = "Intel(R) Wireless-AC 9560 160MHz",
446 	.fw_name_pre = IWL_QNJ_B_JF_B_FW_PRE,
447 	IWL_DEVICE_22500,
448 	/*
449 	 * This device doesn't support receiving BlockAck with a large bitmap
450 	 * so we need to restrict the size of transmitted aggregation to the
451 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
452 	 */
453 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
454 	.num_rbds = IWL_NUM_RBDS_NON_HE,
455 };
456 
457 const struct iwl_cfg iwl9560_2ac_cfg_quz_a0_jf_b0_soc = {
458 	.name = "Intel(R) Wireless-AC 9560 160MHz",
459 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
460 	IWL_DEVICE_22500,
461 	/*
462 	 * This device doesn't support receiving BlockAck with a large bitmap
463 	 * so we need to restrict the size of transmitted aggregation to the
464 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
465 	 */
466 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
467 	.integrated = true,
468 	.soc_latency = 5000,
469 	.num_rbds = IWL_NUM_RBDS_NON_HE,
470 };
471 
472 const struct iwl_cfg iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc = {
473 	.name = "Intel(R) Wireless-AC 9560 160MHz",
474 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
475 	IWL_DEVICE_22500,
476 	/*
477 	 * This device doesn't support receiving BlockAck with a large bitmap
478 	 * so we need to restrict the size of transmitted aggregation to the
479 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
480 	 */
481 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
482 	.integrated = true,
483 	.soc_latency = 5000,
484 	.num_rbds = IWL_NUM_RBDS_NON_HE,
485 };
486 
487 const struct iwl_cfg iwl9461_2ac_cfg_quz_a0_jf_b0_soc = {
488 	.name = "Intel(R) Dual Band Wireless AC 9461",
489 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
490 	IWL_DEVICE_22500,
491 	/*
492 	 * This device doesn't support receiving BlockAck with a large bitmap
493 	 * so we need to restrict the size of transmitted aggregation to the
494 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
495 	 */
496 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
497 	.integrated = true,
498 	.soc_latency = 5000,
499 	.num_rbds = IWL_NUM_RBDS_NON_HE,
500 };
501 
502 const struct iwl_cfg iwl9462_2ac_cfg_quz_a0_jf_b0_soc = {
503 	.name = "Intel(R) Dual Band Wireless AC 9462",
504 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
505 	IWL_DEVICE_22500,
506 	/*
507 	 * This device doesn't support receiving BlockAck with a large bitmap
508 	 * so we need to restrict the size of transmitted aggregation to the
509 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
510 	 */
511 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
512 	.integrated = true,
513 	.soc_latency = 5000,
514 	.num_rbds = IWL_NUM_RBDS_NON_HE,
515 };
516 
517 const struct iwl_cfg iwl9560_killer_s_2ac_cfg_quz_a0_jf_b0_soc = {
518 	.name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
519 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
520 	IWL_DEVICE_22500,
521 	/*
522 	 * This device doesn't support receiving BlockAck with a large bitmap
523 	 * so we need to restrict the size of transmitted aggregation to the
524 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
525 	 */
526 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
527 	.integrated = true,
528 	.soc_latency = 5000,
529 	.num_rbds = IWL_NUM_RBDS_NON_HE,
530 };
531 
532 const struct iwl_cfg iwl9560_killer_i_2ac_cfg_quz_a0_jf_b0_soc = {
533 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
534 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
535 	IWL_DEVICE_22500,
536 	/*
537 	 * This device doesn't support receiving BlockAck with a large bitmap
538 	 * so we need to restrict the size of transmitted aggregation to the
539 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
540 	 */
541 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
542 	.integrated = true,
543 	.soc_latency = 5000,
544 	.num_rbds = IWL_NUM_RBDS_NON_HE,
545 };
546 
547 const struct iwl_cfg killer1550i_2ac_cfg_qu_b0_jf_b0 = {
548 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
549 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
550 	IWL_DEVICE_22500,
551 	.num_rbds = IWL_NUM_RBDS_NON_HE,
552 };
553 
554 const struct iwl_cfg killer1550s_2ac_cfg_qu_b0_jf_b0 = {
555 	.name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
556 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
557 	IWL_DEVICE_22500,
558 	.num_rbds = IWL_NUM_RBDS_NON_HE,
559 };
560 
561 const struct iwl_cfg killer1650s_2ax_cfg_qu_b0_hr_b0 = {
562 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
563 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
564 	IWL_DEVICE_22500,
565 	/*
566 	 * This device doesn't support receiving BlockAck with a large bitmap
567 	 * so we need to restrict the size of transmitted aggregation to the
568 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
569 	 */
570 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
571 	.num_rbds = IWL_NUM_RBDS_22000_HE,
572 };
573 
574 const struct iwl_cfg killer1650i_2ax_cfg_qu_b0_hr_b0 = {
575 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
576 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
577 	IWL_DEVICE_22500,
578 	/*
579 	 * This device doesn't support receiving BlockAck with a large bitmap
580 	 * so we need to restrict the size of transmitted aggregation to the
581 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
582 	 */
583 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
584 	.num_rbds = IWL_NUM_RBDS_22000_HE,
585 };
586 
587 const struct iwl_cfg killer1650s_2ax_cfg_qu_c0_hr_b0 = {
588 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
589 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
590 	IWL_DEVICE_22500,
591 	/*
592 	 * This device doesn't support receiving BlockAck with a large bitmap
593 	 * so we need to restrict the size of transmitted aggregation to the
594 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
595 	 */
596 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
597 	.num_rbds = IWL_NUM_RBDS_22000_HE,
598 };
599 
600 const struct iwl_cfg killer1650i_2ax_cfg_qu_c0_hr_b0 = {
601 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
602 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
603 	IWL_DEVICE_22500,
604 	/*
605 	 * This device doesn't support receiving BlockAck with a large bitmap
606 	 * so we need to restrict the size of transmitted aggregation to the
607 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
608 	 */
609 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
610 	.num_rbds = IWL_NUM_RBDS_22000_HE,
611 };
612 
613 const struct iwl_cfg iwl22000_2ax_cfg_jf = {
614 	.name = "Intel(R) Dual Band Wireless AX 22000",
615 	.fw_name_pre = IWL_QU_B_JF_B_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 	.num_rbds = IWL_NUM_RBDS_22000_HE,
624 };
625 
626 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0_f0 = {
627 	.name = "Intel(R) Dual Band Wireless AX 22000",
628 	.fw_name_pre = IWL_22000_HR_A_F0_FW_PRE,
629 	IWL_DEVICE_22500,
630 	/*
631 	 * This device doesn't support receiving BlockAck with a large bitmap
632 	 * so we need to restrict the size of transmitted aggregation to the
633 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
634 	 */
635 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
636 	.num_rbds = IWL_NUM_RBDS_22000_HE,
637 };
638 
639 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_b0 = {
640 	.name = "Intel(R) Dual Band Wireless AX 22000",
641 	.fw_name_pre = IWL_22000_HR_B_FW_PRE,
642 	IWL_DEVICE_22500,
643 	/*
644 	 * This device doesn't support receiving BlockAck with a large bitmap
645 	 * so we need to restrict the size of transmitted aggregation to the
646 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
647 	 */
648 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
649 	.num_rbds = IWL_NUM_RBDS_22000_HE,
650 };
651 
652 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0 = {
653 	.name = "Intel(R) Dual Band Wireless AX 22000",
654 	.fw_name_pre = IWL_22000_HR_A0_FW_PRE,
655 	IWL_DEVICE_22500,
656 	/*
657 	 * This device doesn't support receiving BlockAck with a large bitmap
658 	 * so we need to restrict the size of transmitted aggregation to the
659 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
660 	 */
661 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
662 	.num_rbds = IWL_NUM_RBDS_22000_HE,
663 };
664 
665 const struct iwl_cfg iwlax210_2ax_cfg_so_jf_a0 = {
666 	.name = "Intel(R) Wireless-AC 9560 160MHz",
667 	.fw_name_pre = IWL_22000_SO_A_JF_B_FW_PRE,
668 	IWL_DEVICE_AX210,
669 	.num_rbds = IWL_NUM_RBDS_NON_HE,
670 };
671 
672 const struct iwl_cfg iwlax210_2ax_cfg_so_hr_a0 = {
673 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
674 	.fw_name_pre = IWL_22000_SO_A_HR_B_FW_PRE,
675 	IWL_DEVICE_AX210,
676 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
677 };
678 
679 const struct iwl_cfg iwlax211_2ax_cfg_so_gf_a0 = {
680 	.name = "Intel(R) Wi-Fi 7 AX211 160MHz",
681 	.fw_name_pre = IWL_22000_SO_A_GF_A_FW_PRE,
682 	.uhb_supported = true,
683 	IWL_DEVICE_AX210,
684 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
685 };
686 
687 const struct iwl_cfg iwlax210_2ax_cfg_ty_gf_a0 = {
688 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
689 	.fw_name_pre = IWL_22000_TY_A_GF_A_FW_PRE,
690 	.uhb_supported = true,
691 	IWL_DEVICE_AX210,
692 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
693 };
694 
695 const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0 = {
696 	.name = "Intel(R) Wi-Fi 7 AX411 160MHz",
697 	.fw_name_pre = IWL_22000_SO_A_GF4_A_FW_PRE,
698 	.uhb_supported = true,
699 	IWL_DEVICE_AX210,
700 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
701 };
702 
703 const struct iwl_cfg iwlax411_2ax_cfg_sosnj_gf4_a0 = {
704 	.name = "Intel(R) Wi-Fi 7 AX411 160MHz",
705 	.fw_name_pre = IWL_22000_SOSNJ_A_GF4_A_FW_PRE,
706 	.uhb_supported = true,
707 	IWL_DEVICE_AX210,
708 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
709 };
710 
711 MODULE_FIRMWARE(IWL_22000_HR_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
712 MODULE_FIRMWARE(IWL_22000_JF_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
713 MODULE_FIRMWARE(IWL_22000_HR_A_F0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
714 MODULE_FIRMWARE(IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
715 MODULE_FIRMWARE(IWL_22000_HR_A0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
716 MODULE_FIRMWARE(IWL_QU_C_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
717 MODULE_FIRMWARE(IWL_QU_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
718 MODULE_FIRMWARE(IWL_QUZ_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
719 MODULE_FIRMWARE(IWL_QUZ_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
720 MODULE_FIRMWARE(IWL_QNJ_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
721 MODULE_FIRMWARE(IWL_CC_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
722 MODULE_FIRMWARE(IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
723 MODULE_FIRMWARE(IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
724 MODULE_FIRMWARE(IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
725 MODULE_FIRMWARE(IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
726