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 iwl_ax101_cfg_qu_hr = {
250 	.name = "Intel(R) Wi-Fi 6 AX101",
251 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
252 	IWL_DEVICE_22500,
253 	/*
254 	 * This device doesn't support receiving BlockAck with a large bitmap
255 	 * so we need to restrict the size of transmitted aggregation to the
256 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
257 	 */
258 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
259 	.tx_with_siso_diversity = true,
260 	.num_rbds = IWL_NUM_RBDS_22000_HE,
261 };
262 
263 const struct iwl_cfg iwl_ax201_cfg_qu_hr = {
264 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
265 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
266 	IWL_DEVICE_22500,
267 	/*
268 	 * This device doesn't support receiving BlockAck with a large bitmap
269 	 * so we need to restrict the size of transmitted aggregation to the
270 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
271 	 */
272 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
273 	.num_rbds = IWL_NUM_RBDS_22000_HE,
274 };
275 
276 const struct iwl_cfg iwl_ax101_cfg_qu_c0_hr_b0 = {
277 	.name = "Intel(R) Wi-Fi 6 AX101",
278 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
279 	IWL_DEVICE_22500,
280 	/*
281 	 * This device doesn't support receiving BlockAck with a large bitmap
282 	 * so we need to restrict the size of transmitted aggregation to the
283 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
284 	 */
285 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
286 	.tx_with_siso_diversity = true,
287 	.num_rbds = IWL_NUM_RBDS_22000_HE,
288 };
289 
290 const struct iwl_cfg iwl_ax201_cfg_qu_c0_hr_b0 = {
291 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
292 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
293 	IWL_DEVICE_22500,
294 	/*
295 	 * This device doesn't support receiving BlockAck with a large bitmap
296 	 * so we need to restrict the size of transmitted aggregation to the
297 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
298 	 */
299 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
300 	.num_rbds = IWL_NUM_RBDS_22000_HE,
301 };
302 
303 const struct iwl_cfg iwl_ax101_cfg_quz_hr = {
304 	.name = "Intel(R) Wi-Fi 6 AX101",
305 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
306 	IWL_DEVICE_22500,
307 	/*
308 	 * This device doesn't support receiving BlockAck with a large bitmap
309 	 * so we need to restrict the size of transmitted aggregation to the
310 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
311 	 */
312 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
313 	.tx_with_siso_diversity = true,
314 	.num_rbds = IWL_NUM_RBDS_22000_HE,
315 };
316 
317 const struct iwl_cfg iwl_ax201_cfg_quz_hr = {
318 	.name = "Intel(R) Wi-Fi 6 AX201 160MHz",
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 	.num_rbds = IWL_NUM_RBDS_22000_HE,
328 };
329 
330 const struct iwl_cfg iwl_ax1650s_cfg_quz_hr = {
331 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
332 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
333 	IWL_DEVICE_22500,
334 	/*
335          * This device doesn't support receiving BlockAck with a large bitmap
336          * so we need to restrict the size of transmitted aggregation to the
337          * HT size; mac80211 would otherwise pick the HE max (256) by default.
338          */
339 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
340 	.num_rbds = IWL_NUM_RBDS_22000_HE,
341 };
342 
343 const struct iwl_cfg iwl_ax1650i_cfg_quz_hr = {
344 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
345 	.fw_name_pre = IWL_QUZ_A_HR_B_FW_PRE,
346 	IWL_DEVICE_22500,
347 	/*
348          * This device doesn't support receiving BlockAck with a large bitmap
349          * so we need to restrict the size of transmitted aggregation to the
350          * HT size; mac80211 would otherwise pick the HE max (256) by default.
351          */
352 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
353 	.num_rbds = IWL_NUM_RBDS_22000_HE,
354 };
355 
356 const struct iwl_cfg iwl_ax200_cfg_cc = {
357 	.name = "Intel(R) Wi-Fi 6 AX200 160MHz",
358 	.fw_name_pre = IWL_CC_A_FW_PRE,
359 	IWL_DEVICE_22500,
360 	/*
361 	 * This device doesn't support receiving BlockAck with a large bitmap
362 	 * so we need to restrict the size of transmitted aggregation to the
363 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
364 	 */
365 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
366 	.trans.bisr_workaround = 1,
367 	.num_rbds = IWL_NUM_RBDS_22000_HE,
368 };
369 
370 const struct iwl_cfg killer1650x_2ax_cfg = {
371 	.name = "Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)",
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 	.trans.bisr_workaround = 1,
381 	.num_rbds = IWL_NUM_RBDS_22000_HE,
382 };
383 
384 const struct iwl_cfg killer1650w_2ax_cfg = {
385 	.name = "Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)",
386 	.fw_name_pre = IWL_CC_A_FW_PRE,
387 	IWL_DEVICE_22500,
388 	/*
389 	 * This device doesn't support receiving BlockAck with a large bitmap
390 	 * so we need to restrict the size of transmitted aggregation to the
391 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
392 	 */
393 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
394 	.trans.bisr_workaround = 1,
395 	.num_rbds = IWL_NUM_RBDS_22000_HE,
396 };
397 
398 /*
399  * All JF radio modules are part of the 9000 series, but the MAC part
400  * looks more like 22000.  That's why this device is here, but called
401  * 9560 nevertheless.
402  */
403 const struct iwl_cfg iwl9461_2ac_cfg_qu_b0_jf_b0 = {
404 	.name = "Intel(R) Wireless-AC 9461",
405 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
406 	IWL_DEVICE_22500,
407 	.num_rbds = IWL_NUM_RBDS_NON_HE,
408 };
409 
410 const struct iwl_cfg iwl9462_2ac_cfg_qu_b0_jf_b0 = {
411 	.name = "Intel(R) Wireless-AC 9462",
412 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
413 	IWL_DEVICE_22500,
414 	.num_rbds = IWL_NUM_RBDS_NON_HE,
415 };
416 
417 const struct iwl_cfg iwl9560_2ac_cfg_qu_b0_jf_b0 = {
418 	.name = "Intel(R) Wireless-AC 9560",
419 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
420 	IWL_DEVICE_22500,
421 	.num_rbds = IWL_NUM_RBDS_NON_HE,
422 };
423 
424 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_b0_jf_b0 = {
425 	.name = "Intel(R) Wireless-AC 9560 160MHz",
426 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
427 	IWL_DEVICE_22500,
428 	.num_rbds = IWL_NUM_RBDS_NON_HE,
429 };
430 
431 const struct iwl_cfg iwl9461_2ac_cfg_qu_c0_jf_b0 = {
432 	.name = "Intel(R) Wireless-AC 9461",
433 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
434 	IWL_DEVICE_22500,
435 	.num_rbds = IWL_NUM_RBDS_NON_HE,
436 };
437 
438 const struct iwl_cfg iwl9462_2ac_cfg_qu_c0_jf_b0 = {
439 	.name = "Intel(R) Wireless-AC 9462",
440 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
441 	IWL_DEVICE_22500,
442 	.num_rbds = IWL_NUM_RBDS_NON_HE,
443 };
444 
445 const struct iwl_cfg iwl9560_2ac_cfg_qu_c0_jf_b0 = {
446 	.name = "Intel(R) Wireless-AC 9560",
447 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
448 	IWL_DEVICE_22500,
449 	.num_rbds = IWL_NUM_RBDS_NON_HE,
450 };
451 
452 const struct iwl_cfg iwl9560_2ac_160_cfg_qu_c0_jf_b0 = {
453 	.name = "Intel(R) Wireless-AC 9560 160MHz",
454 	.fw_name_pre = IWL_QU_C_JF_B_FW_PRE,
455 	IWL_DEVICE_22500,
456 	.num_rbds = IWL_NUM_RBDS_NON_HE,
457 };
458 
459 const struct iwl_cfg iwl9560_2ac_cfg_qnj_jf_b0 = {
460 	.name = "Intel(R) Wireless-AC 9560 160MHz",
461 	.fw_name_pre = IWL_QNJ_B_JF_B_FW_PRE,
462 	IWL_DEVICE_22500,
463 	/*
464 	 * This device doesn't support receiving BlockAck with a large bitmap
465 	 * so we need to restrict the size of transmitted aggregation to the
466 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
467 	 */
468 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
469 	.num_rbds = IWL_NUM_RBDS_NON_HE,
470 };
471 
472 const struct iwl_cfg iwl9560_2ac_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 iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc = {
488 	.name = "Intel(R) Wireless-AC 9560 160MHz",
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 iwl9461_2ac_cfg_quz_a0_jf_b0_soc = {
503 	.name = "Intel(R) Dual Band Wireless AC 9461",
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 iwl9462_2ac_cfg_quz_a0_jf_b0_soc = {
518 	.name = "Intel(R) Dual Band Wireless AC 9462",
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_s_2ac_cfg_quz_a0_jf_b0_soc = {
533 	.name = "Killer (R) Wireless-AC 1550s 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 iwl9560_killer_i_2ac_cfg_quz_a0_jf_b0_soc = {
548 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
549 	.fw_name_pre = IWL_QUZ_A_JF_B_FW_PRE,
550 	IWL_DEVICE_22500,
551 	/*
552 	 * This device doesn't support receiving BlockAck with a large bitmap
553 	 * so we need to restrict the size of transmitted aggregation to the
554 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
555 	 */
556 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
557 	.integrated = true,
558 	.soc_latency = 5000,
559 	.num_rbds = IWL_NUM_RBDS_NON_HE,
560 };
561 
562 const struct iwl_cfg killer1550i_2ac_cfg_qu_b0_jf_b0 = {
563 	.name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
564 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
565 	IWL_DEVICE_22500,
566 	.num_rbds = IWL_NUM_RBDS_NON_HE,
567 };
568 
569 const struct iwl_cfg killer1550s_2ac_cfg_qu_b0_jf_b0 = {
570 	.name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
571 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
572 	IWL_DEVICE_22500,
573 	.num_rbds = IWL_NUM_RBDS_NON_HE,
574 };
575 
576 const struct iwl_cfg killer1650s_2ax_cfg_qu_b0_hr_b0 = {
577 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
578 	.fw_name_pre = IWL_22000_QU_B_HR_B_FW_PRE,
579 	IWL_DEVICE_22500,
580 	/*
581 	 * This device doesn't support receiving BlockAck with a large bitmap
582 	 * so we need to restrict the size of transmitted aggregation to the
583 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
584 	 */
585 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
586 	.num_rbds = IWL_NUM_RBDS_22000_HE,
587 };
588 
589 const struct iwl_cfg killer1650i_2ax_cfg_qu_b0_hr_b0 = {
590 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
591 	.fw_name_pre = IWL_22000_QU_B_HR_B_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 	.num_rbds = IWL_NUM_RBDS_22000_HE,
600 };
601 
602 const struct iwl_cfg killer1650s_2ax_cfg_qu_c0_hr_b0 = {
603 	.name = "Killer(R) Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW)",
604 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
605 	IWL_DEVICE_22500,
606 	/*
607 	 * This device doesn't support receiving BlockAck with a large bitmap
608 	 * so we need to restrict the size of transmitted aggregation to the
609 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
610 	 */
611 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
612 	.num_rbds = IWL_NUM_RBDS_22000_HE,
613 };
614 
615 const struct iwl_cfg killer1650i_2ax_cfg_qu_c0_hr_b0 = {
616 	.name = "Killer(R) Wi-Fi 6 AX1650s 160MHz Wireless Network Adapter (201D2W)",
617 	.fw_name_pre = IWL_QU_C_HR_B_FW_PRE,
618 	IWL_DEVICE_22500,
619 	/*
620 	 * This device doesn't support receiving BlockAck with a large bitmap
621 	 * so we need to restrict the size of transmitted aggregation to the
622 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
623 	 */
624 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
625 	.num_rbds = IWL_NUM_RBDS_22000_HE,
626 };
627 
628 const struct iwl_cfg iwl22000_2ax_cfg_jf = {
629 	.name = "Intel(R) Dual Band Wireless AX 22000",
630 	.fw_name_pre = IWL_QU_B_JF_B_FW_PRE,
631 	IWL_DEVICE_22500,
632 	/*
633 	 * This device doesn't support receiving BlockAck with a large bitmap
634 	 * so we need to restrict the size of transmitted aggregation to the
635 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
636 	 */
637 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
638 	.num_rbds = IWL_NUM_RBDS_22000_HE,
639 };
640 
641 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0_f0 = {
642 	.name = "Intel(R) Dual Band Wireless AX 22000",
643 	.fw_name_pre = IWL_22000_HR_A_F0_FW_PRE,
644 	IWL_DEVICE_22500,
645 	/*
646 	 * This device doesn't support receiving BlockAck with a large bitmap
647 	 * so we need to restrict the size of transmitted aggregation to the
648 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
649 	 */
650 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
651 	.num_rbds = IWL_NUM_RBDS_22000_HE,
652 };
653 
654 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_b0 = {
655 	.name = "Intel(R) Dual Band Wireless AX 22000",
656 	.fw_name_pre = IWL_22000_HR_B_FW_PRE,
657 	IWL_DEVICE_22500,
658 	/*
659 	 * This device doesn't support receiving BlockAck with a large bitmap
660 	 * so we need to restrict the size of transmitted aggregation to the
661 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
662 	 */
663 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
664 	.num_rbds = IWL_NUM_RBDS_22000_HE,
665 };
666 
667 const struct iwl_cfg iwl22000_2ax_cfg_qnj_hr_a0 = {
668 	.name = "Intel(R) Dual Band Wireless AX 22000",
669 	.fw_name_pre = IWL_22000_HR_A0_FW_PRE,
670 	IWL_DEVICE_22500,
671 	/*
672 	 * This device doesn't support receiving BlockAck with a large bitmap
673 	 * so we need to restrict the size of transmitted aggregation to the
674 	 * HT size; mac80211 would otherwise pick the HE max (256) by default.
675 	 */
676 	.max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
677 	.num_rbds = IWL_NUM_RBDS_22000_HE,
678 };
679 
680 const struct iwl_cfg iwlax210_2ax_cfg_so_jf_a0 = {
681 	.name = "Intel(R) Wireless-AC 9560 160MHz",
682 	.fw_name_pre = IWL_22000_SO_A_JF_B_FW_PRE,
683 	IWL_DEVICE_AX210,
684 	.num_rbds = IWL_NUM_RBDS_NON_HE,
685 };
686 
687 const struct iwl_cfg iwlax210_2ax_cfg_so_hr_a0 = {
688 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
689 	.fw_name_pre = IWL_22000_SO_A_HR_B_FW_PRE,
690 	IWL_DEVICE_AX210,
691 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
692 };
693 
694 const struct iwl_cfg iwlax211_2ax_cfg_so_gf_a0 = {
695 	.name = "Intel(R) Wi-Fi 7 AX211 160MHz",
696 	.fw_name_pre = IWL_22000_SO_A_GF_A_FW_PRE,
697 	.uhb_supported = true,
698 	IWL_DEVICE_AX210,
699 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
700 };
701 
702 const struct iwl_cfg iwlax210_2ax_cfg_ty_gf_a0 = {
703 	.name = "Intel(R) Wi-Fi 7 AX210 160MHz",
704 	.fw_name_pre = IWL_22000_TY_A_GF_A_FW_PRE,
705 	.uhb_supported = true,
706 	IWL_DEVICE_AX210,
707 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
708 };
709 
710 const struct iwl_cfg iwlax411_2ax_cfg_so_gf4_a0 = {
711 	.name = "Intel(R) Wi-Fi 7 AX411 160MHz",
712 	.fw_name_pre = IWL_22000_SO_A_GF4_A_FW_PRE,
713 	.uhb_supported = true,
714 	IWL_DEVICE_AX210,
715 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
716 };
717 
718 const struct iwl_cfg iwlax411_2ax_cfg_sosnj_gf4_a0 = {
719 	.name = "Intel(R) Wi-Fi 7 AX411 160MHz",
720 	.fw_name_pre = IWL_22000_SOSNJ_A_GF4_A_FW_PRE,
721 	.uhb_supported = true,
722 	IWL_DEVICE_AX210,
723 	.num_rbds = IWL_NUM_RBDS_AX210_HE,
724 };
725 
726 MODULE_FIRMWARE(IWL_22000_HR_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
727 MODULE_FIRMWARE(IWL_22000_JF_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
728 MODULE_FIRMWARE(IWL_22000_HR_A_F0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
729 MODULE_FIRMWARE(IWL_22000_HR_B_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
730 MODULE_FIRMWARE(IWL_22000_HR_A0_QNJ_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
731 MODULE_FIRMWARE(IWL_QU_C_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
732 MODULE_FIRMWARE(IWL_QU_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
733 MODULE_FIRMWARE(IWL_QUZ_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
734 MODULE_FIRMWARE(IWL_QUZ_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
735 MODULE_FIRMWARE(IWL_QNJ_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
736 MODULE_FIRMWARE(IWL_CC_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
737 MODULE_FIRMWARE(IWL_22000_SO_A_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
738 MODULE_FIRMWARE(IWL_22000_SO_A_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
739 MODULE_FIRMWARE(IWL_22000_SO_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
740 MODULE_FIRMWARE(IWL_22000_TY_A_GF_A_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
741