iwlwifi: identify eeprom version for 6x50 series NIC
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
CommitLineData
e1228374
JS
1/******************************************************************************
2 *
3 * Copyright(c) 2008-2009 Intel Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17 *
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
20 *
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 *
25 *****************************************************************************/
26
27#include <linux/kernel.h>
28#include <linux/module.h>
29#include <linux/init.h>
30#include <linux/pci.h>
31#include <linux/dma-mapping.h>
32#include <linux/delay.h>
33#include <linux/skbuff.h>
34#include <linux/netdevice.h>
35#include <linux/wireless.h>
36#include <net/mac80211.h>
37#include <linux/etherdevice.h>
38#include <asm/unaligned.h>
39
40#include "iwl-eeprom.h"
41#include "iwl-dev.h"
42#include "iwl-core.h"
43#include "iwl-io.h"
44#include "iwl-sta.h"
45#include "iwl-helpers.h"
46#include "iwl-5000-hw.h"
f3a2a424 47#include "iwl-6000-hw.h"
e932a609 48#include "iwl-agn-led.h"
e1228374
JS
49
50/* Highest firmware API version supported */
fcbaf8b0
WYG
51#define IWL6000_UCODE_API_MAX 4
52#define IWL6050_UCODE_API_MAX 4
e1228374
JS
53
54/* Lowest firmware API version supported */
55#define IWL6000_UCODE_API_MIN 1
56#define IWL6050_UCODE_API_MIN 1
57
58#define IWL6000_FW_PRE "iwlwifi-6000-"
59#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
60#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
61
62#define IWL6050_FW_PRE "iwlwifi-6050-"
63#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
64#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
65
672639de
WYG
66static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
67{
68 /* want Celsius */
69 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
71}
72
65b7998a
WYG
73/* NIC configuration for 6000 series */
74static void iwl6000_nic_config(struct iwl_priv *priv)
75{
9371d4ed
WYG
76 u16 radio_cfg;
77
78 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
79
80 /* write radio config values to register */
81 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
82 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
83 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
84 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
85 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
86
87 /* set CSR_HW_CONFIG_REG for uCode use */
88 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
89 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
90 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
65b7998a
WYG
91
92 /* no locking required for register write */
93 if (priv->cfg->pa_type == IWL_PA_HYBRID) {
94 /* 2x2 hybrid phy type */
95 iwl_write32(priv, CSR_GP_DRIVER_REG,
96 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
97 } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
98 /* 2x2 IPA phy type */
99 iwl_write32(priv, CSR_GP_DRIVER_REG,
100 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
101 }
102 /* else do nothing, uCode configured */
103}
104
f3a2a424
WYG
105static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
106 .min_nrg_cck = 97,
107 .max_nrg_cck = 0, /* not used, set to 0 */
108 .auto_corr_min_ofdm = 80,
109 .auto_corr_min_ofdm_mrc = 128,
110 .auto_corr_min_ofdm_x1 = 105,
111 .auto_corr_min_ofdm_mrc_x1 = 192,
112
113 .auto_corr_max_ofdm = 145,
114 .auto_corr_max_ofdm_mrc = 232,
115 .auto_corr_max_ofdm_x1 = 145,
116 .auto_corr_max_ofdm_mrc_x1 = 232,
117
118 .auto_corr_min_cck = 125,
119 .auto_corr_max_cck = 175,
120 .auto_corr_min_cck_mrc = 160,
121 .auto_corr_max_cck_mrc = 310,
122 .nrg_th_cck = 97,
123 .nrg_th_ofdm = 100,
55036d66
WYG
124
125 .barker_corr_th_min = 190,
126 .barker_corr_th_min_mrc = 390,
127 .nrg_th_cca = 62,
f3a2a424
WYG
128};
129
130static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
131{
88804e2b
WYG
132 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
133 priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
134 priv->cfg->num_of_queues =
135 priv->cfg->mod_params->num_of_queues;
f3a2a424 136
88804e2b 137 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
f3a2a424
WYG
138 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
139 priv->hw_params.scd_bc_tbls_size =
88804e2b
WYG
140 priv->cfg->num_of_queues *
141 sizeof(struct iwl5000_scd_bc_tbl);
f3a2a424
WYG
142 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
143 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
144 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
145
146 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
147 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
148
149 priv->hw_params.max_bsm_size = 0;
150 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
151 BIT(IEEE80211_BAND_5GHZ);
152 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
153
154 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
155 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
156 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
157 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
158
159 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
160 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
161
162 /* Set initial sensitivity parameters */
163 /* Set initial calibration set */
164 priv->hw_params.sens = &iwl6000_sensitivity;
165 priv->hw_params.calib_init_cfg =
166 BIT(IWL_CALIB_XTAL) |
167 BIT(IWL_CALIB_LO) |
168 BIT(IWL_CALIB_TX_IQ) |
169 BIT(IWL_CALIB_TX_IQ_PERD) |
170 BIT(IWL_CALIB_BASE_BAND);
171
172 return 0;
173}
174
672639de 175static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 176 .set_hw_params = iwl6000_hw_set_hw_params,
672639de
WYG
177 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
178 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
179 .txq_set_sched = iwl5000_txq_set_sched,
180 .txq_agg_enable = iwl5000_txq_agg_enable,
181 .txq_agg_disable = iwl5000_txq_agg_disable,
182 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
183 .txq_free_tfd = iwl_hw_txq_free_tfd,
184 .txq_init = iwl_hw_tx_queue_init,
185 .rx_handler_setup = iwl5000_rx_handler_setup,
186 .setup_deferred_work = iwl5000_setup_deferred_work,
187 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
188 .load_ucode = iwl5000_load_ucode,
b7a79404
RC
189 .dump_nic_event_log = iwl_dump_nic_event_log,
190 .dump_nic_error_log = iwl_dump_nic_error_log,
672639de
WYG
191 .init_alive_start = iwl5000_init_alive_start,
192 .alive_notify = iwl5000_alive_notify,
193 .send_tx_power = iwl5000_send_tx_power,
194 .update_chain_flags = iwl_update_chain_flags,
195 .apm_ops = {
196 .init = iwl5000_apm_init,
d68b603c 197 .stop = iwl_apm_stop,
65b7998a 198 .config = iwl6000_nic_config,
672639de
WYG
199 .set_pwr_src = iwl_set_pwr_src,
200 },
201 .eeprom_ops = {
202 .regulatory_bands = {
203 EEPROM_5000_REG_BAND_1_CHANNELS,
204 EEPROM_5000_REG_BAND_2_CHANNELS,
205 EEPROM_5000_REG_BAND_3_CHANNELS,
206 EEPROM_5000_REG_BAND_4_CHANNELS,
207 EEPROM_5000_REG_BAND_5_CHANNELS,
7aafef1c
WYG
208 EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
209 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
672639de
WYG
210 },
211 .verify_signature = iwlcore_eeprom_verify_signature,
212 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
213 .release_semaphore = iwlcore_eeprom_release_semaphore,
214 .calib_version = iwl5000_eeprom_calib_version,
215 .query_addr = iwl5000_eeprom_query_addr,
ab9fd1bf 216 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
217 },
218 .post_associate = iwl_post_associate,
219 .isr = iwl_isr_ict,
220 .config_ap = iwl_config_ap,
221 .temp_ops = {
222 .temperature = iwl5000_temperature,
223 .set_ct_kill = iwl6000_set_ct_threshold,
224 },
225};
226
29f35c14 227static struct iwl_ops iwl6000_ops = {
cc0f555d 228 .ucode = &iwl5000_ucode,
672639de 229 .lib = &iwl6000_lib,
29f35c14 230 .hcmd = &iwl5000_hcmd,
d8c07e7a 231 .utils = &iwl5000_hcmd_utils,
e932a609 232 .led = &iwlagn_led_ops,
29f35c14
JS
233};
234
e1228374 235
65b7998a
WYG
236/*
237 * "h": Hybrid configuration, use both internal and external Power Amplifier
238 */
239struct iwl_cfg iwl6000h_2agn_cfg = {
e1228374
JS
240 .name = "6000 Series 2x2 AGN",
241 .fw_name_pre = IWL6000_FW_PRE,
242 .ucode_api_max = IWL6000_UCODE_API_MAX,
243 .ucode_api_min = IWL6000_UCODE_API_MIN,
244 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 245 .ops = &iwl6000_ops,
415e4993 246 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 247 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
e1228374 248 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
249 .num_of_queues = IWL50_NUM_QUEUES,
250 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 251 .mod_params = &iwl50_mod_params,
542cc793
JS
252 .valid_tx_ant = ANT_AB,
253 .valid_rx_ant = ANT_AB,
050681b7 254 .need_pll_cfg = false,
65b7998a 255 .pa_type = IWL_PA_HYBRID,
415e4993
WYG
256 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
257 .shadow_ram_support = true,
b261793d 258 .ht_greenfield_support = true,
f2d0d0e2 259 .led_compensation = 51,
47eef9bd 260 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 261 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 262 .supports_idle = true,
65b7998a
WYG
263};
264
5953a62e
WYG
265struct iwl_cfg iwl6000h_2abg_cfg = {
266 .name = "6000 Series 2x2 ABG",
267 .fw_name_pre = IWL6000_FW_PRE,
268 .ucode_api_max = IWL6000_UCODE_API_MAX,
269 .ucode_api_min = IWL6000_UCODE_API_MIN,
270 .sku = IWL_SKU_A|IWL_SKU_G,
271 .ops = &iwl6000_ops,
272 .eeprom_size = OTP_LOW_IMAGE_SIZE,
273 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
274 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
275 .num_of_queues = IWL50_NUM_QUEUES,
276 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
277 .mod_params = &iwl50_mod_params,
278 .valid_tx_ant = ANT_AB,
279 .valid_rx_ant = ANT_AB,
280 .need_pll_cfg = false,
281 .pa_type = IWL_PA_HYBRID,
282 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
283 .shadow_ram_support = true,
284 .ht_greenfield_support = true,
285 .led_compensation = 51,
d8c07e7a 286 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 287 .supports_idle = true,
5953a62e
WYG
288};
289
290struct iwl_cfg iwl6000h_2bg_cfg = {
291 .name = "6000 Series 2x2 BG",
292 .fw_name_pre = IWL6000_FW_PRE,
293 .ucode_api_max = IWL6000_UCODE_API_MAX,
294 .ucode_api_min = IWL6000_UCODE_API_MIN,
295 .sku = IWL_SKU_G,
296 .ops = &iwl6000_ops,
297 .eeprom_size = OTP_LOW_IMAGE_SIZE,
298 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
299 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
300 .num_of_queues = IWL50_NUM_QUEUES,
301 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
302 .mod_params = &iwl50_mod_params,
303 .valid_tx_ant = ANT_AB,
304 .valid_rx_ant = ANT_AB,
305 .need_pll_cfg = false,
306 .pa_type = IWL_PA_HYBRID,
307 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
308 .shadow_ram_support = true,
309 .ht_greenfield_support = true,
310 .led_compensation = 51,
d8c07e7a 311 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 312 .supports_idle = true,
5953a62e
WYG
313};
314
65b7998a
WYG
315/*
316 * "i": Internal configuration, use internal Power Amplifier
317 */
318struct iwl_cfg iwl6000i_2agn_cfg = {
319 .name = "6000 Series 2x2 AGN",
320 .fw_name_pre = IWL6000_FW_PRE,
321 .ucode_api_max = IWL6000_UCODE_API_MAX,
322 .ucode_api_min = IWL6000_UCODE_API_MIN,
323 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
324 .ops = &iwl6000_ops,
415e4993 325 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 326 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
65b7998a 327 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
328 .num_of_queues = IWL50_NUM_QUEUES,
329 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
65b7998a
WYG
330 .mod_params = &iwl50_mod_params,
331 .valid_tx_ant = ANT_BC,
332 .valid_rx_ant = ANT_BC,
333 .need_pll_cfg = false,
334 .pa_type = IWL_PA_INTERNAL,
415e4993
WYG
335 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
336 .shadow_ram_support = true,
b261793d 337 .ht_greenfield_support = true,
f2d0d0e2 338 .led_compensation = 51,
47eef9bd 339 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 340 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 341 .supports_idle = true,
e1228374
JS
342};
343
5953a62e
WYG
344struct iwl_cfg iwl6000i_2abg_cfg = {
345 .name = "6000 Series 2x2 ABG",
346 .fw_name_pre = IWL6000_FW_PRE,
347 .ucode_api_max = IWL6000_UCODE_API_MAX,
348 .ucode_api_min = IWL6000_UCODE_API_MIN,
349 .sku = IWL_SKU_A|IWL_SKU_G,
350 .ops = &iwl6000_ops,
351 .eeprom_size = OTP_LOW_IMAGE_SIZE,
352 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
353 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
354 .num_of_queues = IWL50_NUM_QUEUES,
355 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
356 .mod_params = &iwl50_mod_params,
357 .valid_tx_ant = ANT_BC,
358 .valid_rx_ant = ANT_BC,
359 .need_pll_cfg = false,
360 .pa_type = IWL_PA_INTERNAL,
361 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
362 .shadow_ram_support = true,
363 .ht_greenfield_support = true,
364 .led_compensation = 51,
d8c07e7a 365 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 366 .supports_idle = true,
5953a62e
WYG
367};
368
369struct iwl_cfg iwl6000i_2bg_cfg = {
370 .name = "6000 Series 2x2 BG",
371 .fw_name_pre = IWL6000_FW_PRE,
372 .ucode_api_max = IWL6000_UCODE_API_MAX,
373 .ucode_api_min = IWL6000_UCODE_API_MIN,
374 .sku = IWL_SKU_G,
375 .ops = &iwl6000_ops,
376 .eeprom_size = OTP_LOW_IMAGE_SIZE,
377 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
378 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
379 .num_of_queues = IWL50_NUM_QUEUES,
380 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
381 .mod_params = &iwl50_mod_params,
382 .valid_tx_ant = ANT_BC,
383 .valid_rx_ant = ANT_BC,
384 .need_pll_cfg = false,
385 .pa_type = IWL_PA_INTERNAL,
386 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
387 .shadow_ram_support = true,
388 .ht_greenfield_support = true,
389 .led_compensation = 51,
d8c07e7a 390 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 391 .supports_idle = true,
5953a62e
WYG
392};
393
e1228374
JS
394struct iwl_cfg iwl6050_2agn_cfg = {
395 .name = "6050 Series 2x2 AGN",
396 .fw_name_pre = IWL6050_FW_PRE,
397 .ucode_api_max = IWL6050_UCODE_API_MAX,
398 .ucode_api_min = IWL6050_UCODE_API_MIN,
399 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 400 .ops = &iwl6000_ops,
415e4993 401 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 402 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
e1228374 403 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
404 .num_of_queues = IWL50_NUM_QUEUES,
405 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 406 .mod_params = &iwl50_mod_params,
542cc793
JS
407 .valid_tx_ant = ANT_AB,
408 .valid_rx_ant = ANT_AB,
050681b7 409 .need_pll_cfg = false,
65b7998a 410 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
411 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
412 .shadow_ram_support = true,
b261793d 413 .ht_greenfield_support = true,
f2d0d0e2 414 .led_compensation = 51,
47eef9bd 415 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 416 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 417 .supports_idle = true,
e1228374
JS
418};
419
5953a62e
WYG
420struct iwl_cfg iwl6050_2abg_cfg = {
421 .name = "6050 Series 2x2 ABG",
422 .fw_name_pre = IWL6050_FW_PRE,
423 .ucode_api_max = IWL6050_UCODE_API_MAX,
424 .ucode_api_min = IWL6050_UCODE_API_MIN,
425 .sku = IWL_SKU_A|IWL_SKU_G,
426 .ops = &iwl6000_ops,
427 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 428 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
5953a62e 429 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
430 .num_of_queues = IWL50_NUM_QUEUES,
431 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
432 .mod_params = &iwl50_mod_params,
433 .valid_tx_ant = ANT_AB,
434 .valid_rx_ant = ANT_AB,
435 .need_pll_cfg = false,
436 .pa_type = IWL_PA_SYSTEM,
437 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
438 .shadow_ram_support = true,
439 .ht_greenfield_support = true,
440 .led_compensation = 51,
d8c07e7a 441 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 442 .supports_idle = true,
5953a62e
WYG
443};
444
e1228374
JS
445struct iwl_cfg iwl6000_3agn_cfg = {
446 .name = "6000 Series 3x3 AGN",
447 .fw_name_pre = IWL6000_FW_PRE,
448 .ucode_api_max = IWL6000_UCODE_API_MAX,
449 .ucode_api_min = IWL6000_UCODE_API_MIN,
450 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 451 .ops = &iwl6000_ops,
415e4993 452 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 453 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
e1228374 454 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
455 .num_of_queues = IWL50_NUM_QUEUES,
456 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 457 .mod_params = &iwl50_mod_params,
c0bac76a
JS
458 .valid_tx_ant = ANT_ABC,
459 .valid_rx_ant = ANT_ABC,
050681b7 460 .need_pll_cfg = false,
65b7998a 461 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
462 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
463 .shadow_ram_support = true,
b261793d 464 .ht_greenfield_support = true,
f2d0d0e2 465 .led_compensation = 51,
47eef9bd 466 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 467 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 468 .supports_idle = true,
e1228374
JS
469};
470
471struct iwl_cfg iwl6050_3agn_cfg = {
472 .name = "6050 Series 3x3 AGN",
473 .fw_name_pre = IWL6050_FW_PRE,
474 .ucode_api_max = IWL6050_UCODE_API_MAX,
475 .ucode_api_min = IWL6050_UCODE_API_MIN,
476 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 477 .ops = &iwl6000_ops,
415e4993 478 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 479 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
e1228374 480 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
481 .num_of_queues = IWL50_NUM_QUEUES,
482 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 483 .mod_params = &iwl50_mod_params,
c0bac76a
JS
484 .valid_tx_ant = ANT_ABC,
485 .valid_rx_ant = ANT_ABC,
050681b7 486 .need_pll_cfg = false,
65b7998a 487 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
488 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
489 .shadow_ram_support = true,
b261793d 490 .ht_greenfield_support = true,
f2d0d0e2 491 .led_compensation = 51,
47eef9bd 492 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 493 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 494 .supports_idle = true,
e1228374
JS
495};
496
497MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
498MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
This page took 0.165284 seconds and 5 git commands to generate.