1 /******************************************************************************
3 * Copyright(c) 2008-2009 Intel Corporation. All rights reserved.
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.
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
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
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25 *****************************************************************************/
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>
40 #include "iwl-eeprom.h"
45 #include "iwl-helpers.h"
46 #include "iwl-5000-hw.h"
47 #include "iwl-6000-hw.h"
48 #include "iwl-agn-led.h"
50 /* Highest firmware API version supported */
51 #define IWL6000_UCODE_API_MAX 4
52 #define IWL6050_UCODE_API_MAX 4
54 /* Lowest firmware API version supported */
55 #define IWL6000_UCODE_API_MIN 4
56 #define IWL6050_UCODE_API_MIN 4
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)
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)
66 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
69 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
73 /* NIC configuration for 6000 series */
74 static void iwl6000_nic_config(struct iwl_priv *priv)
78 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
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));
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);
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);
102 /* else do nothing, uCode configured */
105 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
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,
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,
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,
125 .barker_corr_th_min = 190,
126 .barker_corr_th_min_mrc = 390,
130 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
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;
137 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
138 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
139 priv->hw_params.scd_bc_tbls_size =
140 priv->cfg->num_of_queues *
141 sizeof(struct iwl5000_scd_bc_tbl);
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;
146 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
147 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
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;
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;
159 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
160 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
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) |
168 BIT(IWL_CALIB_TX_IQ) |
169 BIT(IWL_CALIB_BASE_BAND);
173 static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
175 struct iwl6000_channel_switch_cmd cmd;
176 const struct iwl_channel_info *ch_info;
177 struct iwl_host_cmd hcmd = {
178 .id = REPLY_CHANNEL_SWITCH,
180 .flags = CMD_SIZE_HUGE,
184 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
185 priv->active_rxon.channel, channel);
187 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
188 cmd.channel = cpu_to_le16(channel);
189 cmd.rxon_flags = priv->staging_rxon.flags;
190 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
191 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
192 ch_info = iwl_get_channel_info(priv, priv->band, channel);
194 cmd.expect_beacon = is_channel_radar(ch_info);
196 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
197 priv->active_rxon.channel, channel);
200 priv->switch_rxon.channel = cpu_to_le16(channel);
201 priv->switch_rxon.switch_in_progress = true;
203 return iwl_send_cmd_sync(priv, &hcmd);
206 static struct iwl_lib_ops iwl6000_lib = {
207 .set_hw_params = iwl6000_hw_set_hw_params,
208 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
209 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
210 .txq_set_sched = iwl5000_txq_set_sched,
211 .txq_agg_enable = iwl5000_txq_agg_enable,
212 .txq_agg_disable = iwl5000_txq_agg_disable,
213 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
214 .txq_free_tfd = iwl_hw_txq_free_tfd,
215 .txq_init = iwl_hw_tx_queue_init,
216 .rx_handler_setup = iwl5000_rx_handler_setup,
217 .setup_deferred_work = iwl5000_setup_deferred_work,
218 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
219 .load_ucode = iwl5000_load_ucode,
220 .dump_nic_event_log = iwl_dump_nic_event_log,
221 .dump_nic_error_log = iwl_dump_nic_error_log,
222 .init_alive_start = iwl5000_init_alive_start,
223 .alive_notify = iwl5000_alive_notify,
224 .send_tx_power = iwl5000_send_tx_power,
225 .update_chain_flags = iwl_update_chain_flags,
226 .set_channel_switch = iwl6000_hw_channel_switch,
228 .init = iwl_apm_init,
229 .stop = iwl_apm_stop,
230 .config = iwl6000_nic_config,
231 .set_pwr_src = iwl_set_pwr_src,
234 .regulatory_bands = {
235 EEPROM_5000_REG_BAND_1_CHANNELS,
236 EEPROM_5000_REG_BAND_2_CHANNELS,
237 EEPROM_5000_REG_BAND_3_CHANNELS,
238 EEPROM_5000_REG_BAND_4_CHANNELS,
239 EEPROM_5000_REG_BAND_5_CHANNELS,
240 EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
241 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
243 .verify_signature = iwlcore_eeprom_verify_signature,
244 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
245 .release_semaphore = iwlcore_eeprom_release_semaphore,
246 .calib_version = iwl5000_eeprom_calib_version,
247 .query_addr = iwl5000_eeprom_query_addr,
248 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
250 .post_associate = iwl_post_associate,
252 .config_ap = iwl_config_ap,
254 .temperature = iwl5000_temperature,
255 .set_ct_kill = iwl6000_set_ct_threshold,
259 static struct iwl_ops iwl6000_ops = {
260 .ucode = &iwl5000_ucode,
262 .hcmd = &iwl5000_hcmd,
263 .utils = &iwl5000_hcmd_utils,
264 .led = &iwlagn_led_ops,
267 static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
268 .get_hcmd_size = iwl5000_get_hcmd_size,
269 .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
270 .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
271 .calc_rssi = iwl5000_calc_rssi,
274 static struct iwl_ops iwl6050_ops = {
275 .ucode = &iwl5000_ucode,
277 .hcmd = &iwl5000_hcmd,
278 .utils = &iwl6050_hcmd_utils,
279 .led = &iwlagn_led_ops,
284 * "h": Hybrid configuration, use both internal and external Power Amplifier
286 struct iwl_cfg iwl6000h_2agn_cfg = {
287 .name = "6000 Series 2x2 AGN",
288 .fw_name_pre = IWL6000_FW_PRE,
289 .ucode_api_max = IWL6000_UCODE_API_MAX,
290 .ucode_api_min = IWL6000_UCODE_API_MIN,
291 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
293 .eeprom_size = OTP_LOW_IMAGE_SIZE,
294 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
295 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
296 .num_of_queues = IWL50_NUM_QUEUES,
297 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
298 .mod_params = &iwl50_mod_params,
299 .valid_tx_ant = ANT_AB,
300 .valid_rx_ant = ANT_AB,
304 .pa_type = IWL_PA_HYBRID,
305 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
306 .shadow_ram_support = true,
307 .ht_greenfield_support = true,
308 .led_compensation = 51,
309 .use_rts_for_ht = true, /* use rts/cts protection */
310 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
311 .supports_idle = true,
312 .adv_thermal_throttle = true,
313 .support_ct_kill_exit = true,
316 struct iwl_cfg iwl6000h_2abg_cfg = {
317 .name = "6000 Series 2x2 ABG",
318 .fw_name_pre = IWL6000_FW_PRE,
319 .ucode_api_max = IWL6000_UCODE_API_MAX,
320 .ucode_api_min = IWL6000_UCODE_API_MIN,
321 .sku = IWL_SKU_A|IWL_SKU_G,
323 .eeprom_size = OTP_LOW_IMAGE_SIZE,
324 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
325 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
326 .num_of_queues = IWL50_NUM_QUEUES,
327 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
328 .mod_params = &iwl50_mod_params,
329 .valid_tx_ant = ANT_AB,
330 .valid_rx_ant = ANT_AB,
334 .pa_type = IWL_PA_HYBRID,
335 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
336 .shadow_ram_support = true,
337 .ht_greenfield_support = true,
338 .led_compensation = 51,
339 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
340 .supports_idle = true,
341 .adv_thermal_throttle = true,
342 .support_ct_kill_exit = true,
345 struct iwl_cfg iwl6000h_2bg_cfg = {
346 .name = "6000 Series 2x2 BG",
347 .fw_name_pre = IWL6000_FW_PRE,
348 .ucode_api_max = IWL6000_UCODE_API_MAX,
349 .ucode_api_min = IWL6000_UCODE_API_MIN,
352 .eeprom_size = OTP_LOW_IMAGE_SIZE,
353 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
354 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
355 .num_of_queues = IWL50_NUM_QUEUES,
356 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
357 .mod_params = &iwl50_mod_params,
358 .valid_tx_ant = ANT_AB,
359 .valid_rx_ant = ANT_AB,
363 .pa_type = IWL_PA_HYBRID,
364 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
365 .shadow_ram_support = true,
366 .ht_greenfield_support = true,
367 .led_compensation = 51,
368 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
369 .supports_idle = true,
370 .adv_thermal_throttle = true,
371 .support_ct_kill_exit = true,
375 * "i": Internal configuration, use internal Power Amplifier
377 struct iwl_cfg iwl6000i_2agn_cfg = {
378 .name = "6000 Series 2x2 AGN",
379 .fw_name_pre = IWL6000_FW_PRE,
380 .ucode_api_max = IWL6000_UCODE_API_MAX,
381 .ucode_api_min = IWL6000_UCODE_API_MIN,
382 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
384 .eeprom_size = OTP_LOW_IMAGE_SIZE,
385 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
386 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
387 .num_of_queues = IWL50_NUM_QUEUES,
388 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
389 .mod_params = &iwl50_mod_params,
390 .valid_tx_ant = ANT_BC,
391 .valid_rx_ant = ANT_BC,
395 .pa_type = IWL_PA_INTERNAL,
396 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
397 .shadow_ram_support = true,
398 .ht_greenfield_support = true,
399 .led_compensation = 51,
400 .use_rts_for_ht = true, /* use rts/cts protection */
401 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
402 .supports_idle = true,
403 .adv_thermal_throttle = true,
404 .support_ct_kill_exit = true,
407 struct iwl_cfg iwl6000i_2abg_cfg = {
408 .name = "6000 Series 2x2 ABG",
409 .fw_name_pre = IWL6000_FW_PRE,
410 .ucode_api_max = IWL6000_UCODE_API_MAX,
411 .ucode_api_min = IWL6000_UCODE_API_MIN,
412 .sku = IWL_SKU_A|IWL_SKU_G,
414 .eeprom_size = OTP_LOW_IMAGE_SIZE,
415 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
416 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
417 .num_of_queues = IWL50_NUM_QUEUES,
418 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
419 .mod_params = &iwl50_mod_params,
420 .valid_tx_ant = ANT_BC,
421 .valid_rx_ant = ANT_BC,
425 .pa_type = IWL_PA_INTERNAL,
426 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
427 .shadow_ram_support = true,
428 .ht_greenfield_support = true,
429 .led_compensation = 51,
430 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
431 .supports_idle = true,
432 .adv_thermal_throttle = true,
433 .support_ct_kill_exit = true,
436 struct iwl_cfg iwl6000i_2bg_cfg = {
437 .name = "6000 Series 2x2 BG",
438 .fw_name_pre = IWL6000_FW_PRE,
439 .ucode_api_max = IWL6000_UCODE_API_MAX,
440 .ucode_api_min = IWL6000_UCODE_API_MIN,
443 .eeprom_size = OTP_LOW_IMAGE_SIZE,
444 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
445 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
446 .num_of_queues = IWL50_NUM_QUEUES,
447 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
448 .mod_params = &iwl50_mod_params,
449 .valid_tx_ant = ANT_BC,
450 .valid_rx_ant = ANT_BC,
454 .pa_type = IWL_PA_INTERNAL,
455 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
456 .shadow_ram_support = true,
457 .ht_greenfield_support = true,
458 .led_compensation = 51,
459 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
460 .supports_idle = true,
461 .adv_thermal_throttle = true,
462 .support_ct_kill_exit = true,
465 struct iwl_cfg iwl6050_2agn_cfg = {
466 .name = "6050 Series 2x2 AGN",
467 .fw_name_pre = IWL6050_FW_PRE,
468 .ucode_api_max = IWL6050_UCODE_API_MAX,
469 .ucode_api_min = IWL6050_UCODE_API_MIN,
470 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
472 .eeprom_size = OTP_LOW_IMAGE_SIZE,
473 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
474 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
475 .num_of_queues = IWL50_NUM_QUEUES,
476 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
477 .mod_params = &iwl50_mod_params,
478 .valid_tx_ant = ANT_AB,
479 .valid_rx_ant = ANT_AB,
483 .pa_type = IWL_PA_SYSTEM,
484 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
485 .shadow_ram_support = true,
486 .ht_greenfield_support = true,
487 .led_compensation = 51,
488 .use_rts_for_ht = true, /* use rts/cts protection */
489 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
490 .supports_idle = true,
491 .adv_thermal_throttle = true,
492 .support_ct_kill_exit = true,
493 .support_sm_ps = true,
494 .support_wimax_coexist = true,
497 struct iwl_cfg iwl6050_2abg_cfg = {
498 .name = "6050 Series 2x2 ABG",
499 .fw_name_pre = IWL6050_FW_PRE,
500 .ucode_api_max = IWL6050_UCODE_API_MAX,
501 .ucode_api_min = IWL6050_UCODE_API_MIN,
502 .sku = IWL_SKU_A|IWL_SKU_G,
504 .eeprom_size = OTP_LOW_IMAGE_SIZE,
505 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
506 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
507 .num_of_queues = IWL50_NUM_QUEUES,
508 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
509 .mod_params = &iwl50_mod_params,
510 .valid_tx_ant = ANT_AB,
511 .valid_rx_ant = ANT_AB,
515 .pa_type = IWL_PA_SYSTEM,
516 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
517 .shadow_ram_support = true,
518 .ht_greenfield_support = true,
519 .led_compensation = 51,
520 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
521 .supports_idle = true,
522 .adv_thermal_throttle = true,
523 .support_ct_kill_exit = true,
524 .support_wimax_coexist = true,
527 struct iwl_cfg iwl6000_3agn_cfg = {
528 .name = "6000 Series 3x3 AGN",
529 .fw_name_pre = IWL6000_FW_PRE,
530 .ucode_api_max = IWL6000_UCODE_API_MAX,
531 .ucode_api_min = IWL6000_UCODE_API_MIN,
532 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
534 .eeprom_size = OTP_LOW_IMAGE_SIZE,
535 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
536 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
537 .num_of_queues = IWL50_NUM_QUEUES,
538 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
539 .mod_params = &iwl50_mod_params,
540 .valid_tx_ant = ANT_ABC,
541 .valid_rx_ant = ANT_ABC,
545 .pa_type = IWL_PA_SYSTEM,
546 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
547 .shadow_ram_support = true,
548 .ht_greenfield_support = true,
549 .led_compensation = 51,
550 .use_rts_for_ht = true, /* use rts/cts protection */
551 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
552 .supports_idle = true,
553 .adv_thermal_throttle = true,
554 .support_ct_kill_exit = true,
557 struct iwl_cfg iwl6050_3agn_cfg = {
558 .name = "6050 Series 3x3 AGN",
559 .fw_name_pre = IWL6050_FW_PRE,
560 .ucode_api_max = IWL6050_UCODE_API_MAX,
561 .ucode_api_min = IWL6050_UCODE_API_MIN,
562 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
564 .eeprom_size = OTP_LOW_IMAGE_SIZE,
565 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
566 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
567 .num_of_queues = IWL50_NUM_QUEUES,
568 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
569 .mod_params = &iwl50_mod_params,
570 .valid_tx_ant = ANT_ABC,
571 .valid_rx_ant = ANT_ABC,
575 .pa_type = IWL_PA_SYSTEM,
576 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
577 .shadow_ram_support = true,
578 .ht_greenfield_support = true,
579 .led_compensation = 51,
580 .use_rts_for_ht = true, /* use rts/cts protection */
581 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
582 .supports_idle = true,
583 .adv_thermal_throttle = true,
584 .support_ct_kill_exit = true,
585 .support_sm_ps = true,
586 .support_wimax_coexist = true,
589 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
590 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));