]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/net/wireless/iwlwifi/iwl-6000.c
iwlagn: set CSR register for 6050g2 devices
[karo-tx-linux.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2008 - 2010 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-agn.h"
46 #include "iwl-helpers.h"
47 #include "iwl-agn-hw.h"
48 #include "iwl-6000-hw.h"
49 #include "iwl-agn-led.h"
50 #include "iwl-agn-debugfs.h"
51
52 /* Highest firmware API version supported */
53 #define IWL6000_UCODE_API_MAX 4
54 #define IWL6050_UCODE_API_MAX 4
55 #define IWL6000G2_UCODE_API_MAX 5
56
57 /* Lowest firmware API version supported */
58 #define IWL6000_UCODE_API_MIN 4
59 #define IWL6050_UCODE_API_MIN 4
60 #define IWL6000G2_UCODE_API_MIN 4
61
62 #define IWL6000_FW_PRE "iwlwifi-6000-"
63 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
64 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
65
66 #define IWL6050_FW_PRE "iwlwifi-6050-"
67 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
68 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
69
70 #define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
71 #define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
72 #define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
73
74 #define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
75 #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
76 #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
77
78
79 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
80 {
81         /* want Celsius */
82         priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
83         priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
84 }
85
86 static void iwl6050_additional_nic_config(struct iwl_priv *priv)
87 {
88         /* Indicate calibration version to uCode. */
89         if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
90                 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
91                                 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
92 }
93
94 static void iwl6050g2_additional_nic_config(struct iwl_priv *priv)
95 {
96         /* Indicate calibration version to uCode. */
97         if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
98                 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
99                                 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
100         iwl_set_bit(priv, CSR_GP_DRIVER_REG,
101                     CSR_GP_DRIVER_REG_BIT_6050_1x2);
102 }
103
104 /* NIC configuration for 6000 series */
105 static void iwl6000_nic_config(struct iwl_priv *priv)
106 {
107         u16 radio_cfg;
108
109         radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
110
111         /* write radio config values to register */
112         if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
113                 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
114                             EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
115                             EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
116                             EEPROM_RF_CFG_DASH_MSK(radio_cfg));
117
118         /* set CSR_HW_CONFIG_REG for uCode use */
119         iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
120                     CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
121                     CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
122
123         /* no locking required for register write */
124         if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
125                 /* 2x2 IPA phy type */
126                 iwl_write32(priv, CSR_GP_DRIVER_REG,
127                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
128         }
129         /* do additional nic configuration if needed */
130         if (priv->cfg->ops->nic &&
131                 priv->cfg->ops->nic->additional_nic_config) {
132                         priv->cfg->ops->nic->additional_nic_config(priv);
133         }
134 }
135
136 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
137         .min_nrg_cck = 97,
138         .max_nrg_cck = 0, /* not used, set to 0 */
139         .auto_corr_min_ofdm = 80,
140         .auto_corr_min_ofdm_mrc = 128,
141         .auto_corr_min_ofdm_x1 = 105,
142         .auto_corr_min_ofdm_mrc_x1 = 192,
143
144         .auto_corr_max_ofdm = 145,
145         .auto_corr_max_ofdm_mrc = 232,
146         .auto_corr_max_ofdm_x1 = 110,
147         .auto_corr_max_ofdm_mrc_x1 = 232,
148
149         .auto_corr_min_cck = 125,
150         .auto_corr_max_cck = 175,
151         .auto_corr_min_cck_mrc = 160,
152         .auto_corr_max_cck_mrc = 310,
153         .nrg_th_cck = 97,
154         .nrg_th_ofdm = 100,
155
156         .barker_corr_th_min = 190,
157         .barker_corr_th_min_mrc = 390,
158         .nrg_th_cca = 62,
159 };
160
161 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
162 {
163         if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
164             priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
165                 priv->cfg->num_of_queues =
166                         priv->cfg->mod_params->num_of_queues;
167
168         priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
169         priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
170         priv->hw_params.scd_bc_tbls_size =
171                         priv->cfg->num_of_queues *
172                         sizeof(struct iwlagn_scd_bc_tbl);
173         priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
174         priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
175         priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
176
177         priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
178         priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
179
180         priv->hw_params.max_bsm_size = 0;
181         priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) |
182                                         BIT(IEEE80211_BAND_5GHZ);
183         priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
184
185         priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
186         priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
187         priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
188         priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
189
190         if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
191                 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
192
193         /* Set initial sensitivity parameters */
194         /* Set initial calibration set */
195         priv->hw_params.sens = &iwl6000_sensitivity;
196         priv->hw_params.calib_init_cfg =
197                 BIT(IWL_CALIB_XTAL)             |
198                 BIT(IWL_CALIB_LO)               |
199                 BIT(IWL_CALIB_TX_IQ)            |
200                 BIT(IWL_CALIB_BASE_BAND);
201         if (priv->cfg->need_dc_calib)
202                 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
203
204         priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
205
206         return 0;
207 }
208
209 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
210                                      struct ieee80211_channel_switch *ch_switch)
211 {
212         /*
213          * MULTI-FIXME
214          * See iwl_mac_channel_switch.
215          */
216         struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
217         struct iwl6000_channel_switch_cmd cmd;
218         const struct iwl_channel_info *ch_info;
219         u32 switch_time_in_usec, ucode_switch_time;
220         u16 ch;
221         u32 tsf_low;
222         u8 switch_count;
223         u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
224         struct ieee80211_vif *vif = ctx->vif;
225         struct iwl_host_cmd hcmd = {
226                 .id = REPLY_CHANNEL_SWITCH,
227                 .len = sizeof(cmd),
228                 .flags = CMD_SYNC,
229                 .data = &cmd,
230         };
231
232         cmd.band = priv->band == IEEE80211_BAND_2GHZ;
233         ch = ch_switch->channel->hw_value;
234         IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
235                       ctx->active.channel, ch);
236         cmd.channel = cpu_to_le16(ch);
237         cmd.rxon_flags = ctx->staging.flags;
238         cmd.rxon_filter_flags = ctx->staging.filter_flags;
239         switch_count = ch_switch->count;
240         tsf_low = ch_switch->timestamp & 0x0ffffffff;
241         /*
242          * calculate the ucode channel switch time
243          * adding TSF as one of the factor for when to switch
244          */
245         if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
246                 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
247                     beacon_interval)) {
248                         switch_count -= (priv->ucode_beacon_time -
249                                 tsf_low) / beacon_interval;
250                 } else
251                         switch_count = 0;
252         }
253         if (switch_count <= 1)
254                 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
255         else {
256                 switch_time_in_usec =
257                         vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
258                 ucode_switch_time = iwl_usecs_to_beacons(priv,
259                                                          switch_time_in_usec,
260                                                          beacon_interval);
261                 cmd.switch_time = iwl_add_beacon_time(priv,
262                                                       priv->ucode_beacon_time,
263                                                       ucode_switch_time,
264                                                       beacon_interval);
265         }
266         IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
267                       cmd.switch_time);
268         ch_info = iwl_get_channel_info(priv, priv->band, ch);
269         if (ch_info)
270                 cmd.expect_beacon = is_channel_radar(ch_info);
271         else {
272                 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
273                         ctx->active.channel, ch);
274                 return -EFAULT;
275         }
276         priv->switch_rxon.channel = cmd.channel;
277         priv->switch_rxon.switch_in_progress = true;
278
279         return iwl_send_cmd_sync(priv, &hcmd);
280 }
281
282 static struct iwl_lib_ops iwl6000_lib = {
283         .set_hw_params = iwl6000_hw_set_hw_params,
284         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
285         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
286         .txq_set_sched = iwlagn_txq_set_sched,
287         .txq_agg_enable = iwlagn_txq_agg_enable,
288         .txq_agg_disable = iwlagn_txq_agg_disable,
289         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
290         .txq_free_tfd = iwl_hw_txq_free_tfd,
291         .txq_init = iwl_hw_tx_queue_init,
292         .rx_handler_setup = iwlagn_rx_handler_setup,
293         .setup_deferred_work = iwlagn_setup_deferred_work,
294         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
295         .load_ucode = iwlagn_load_ucode,
296         .dump_nic_event_log = iwl_dump_nic_event_log,
297         .dump_nic_error_log = iwl_dump_nic_error_log,
298         .dump_csr = iwl_dump_csr,
299         .dump_fh = iwl_dump_fh,
300         .init_alive_start = iwlagn_init_alive_start,
301         .alive_notify = iwlagn_alive_notify,
302         .send_tx_power = iwlagn_send_tx_power,
303         .update_chain_flags = iwl_update_chain_flags,
304         .set_channel_switch = iwl6000_hw_channel_switch,
305         .apm_ops = {
306                 .init = iwl_apm_init,
307                 .stop = iwl_apm_stop,
308                 .config = iwl6000_nic_config,
309                 .set_pwr_src = iwl_set_pwr_src,
310         },
311         .eeprom_ops = {
312                 .regulatory_bands = {
313                         EEPROM_REG_BAND_1_CHANNELS,
314                         EEPROM_REG_BAND_2_CHANNELS,
315                         EEPROM_REG_BAND_3_CHANNELS,
316                         EEPROM_REG_BAND_4_CHANNELS,
317                         EEPROM_REG_BAND_5_CHANNELS,
318                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
319                         EEPROM_REG_BAND_52_HT40_CHANNELS
320                 },
321                 .verify_signature  = iwlcore_eeprom_verify_signature,
322                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
323                 .release_semaphore = iwlcore_eeprom_release_semaphore,
324                 .calib_version  = iwlagn_eeprom_calib_version,
325                 .query_addr = iwlagn_eeprom_query_addr,
326                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
327         },
328         .post_associate = iwl_post_associate,
329         .isr = iwl_isr_ict,
330         .config_ap = iwl_config_ap,
331         .temp_ops = {
332                 .temperature = iwlagn_temperature,
333                 .set_ct_kill = iwl6000_set_ct_threshold,
334          },
335         .manage_ibss_station = iwlagn_manage_ibss_station,
336         .update_bcast_stations = iwl_update_bcast_stations,
337         .debugfs_ops = {
338                 .rx_stats_read = iwl_ucode_rx_stats_read,
339                 .tx_stats_read = iwl_ucode_tx_stats_read,
340                 .general_stats_read = iwl_ucode_general_stats_read,
341                 .bt_stats_read = iwl_ucode_bt_stats_read,
342                 .reply_tx_error = iwl_reply_tx_error_read,
343         },
344         .recover_from_tx_stall = iwl_bg_monitor_recover,
345         .check_plcp_health = iwl_good_plcp_health,
346         .check_ack_health = iwl_good_ack_health,
347         .txfifo_flush = iwlagn_txfifo_flush,
348         .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
349         .tt_ops = {
350                 .lower_power_detection = iwl_tt_is_low_power_state,
351                 .tt_power_mode = iwl_tt_current_power_mode,
352                 .ct_kill_check = iwl_check_for_ct_kill,
353         }
354 };
355
356 static struct iwl_lib_ops iwl6000g2b_lib = {
357         .set_hw_params = iwl6000_hw_set_hw_params,
358         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
359         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
360         .txq_set_sched = iwlagn_txq_set_sched,
361         .txq_agg_enable = iwlagn_txq_agg_enable,
362         .txq_agg_disable = iwlagn_txq_agg_disable,
363         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
364         .txq_free_tfd = iwl_hw_txq_free_tfd,
365         .txq_init = iwl_hw_tx_queue_init,
366         .rx_handler_setup = iwlagn_bt_rx_handler_setup,
367         .setup_deferred_work = iwlagn_bt_setup_deferred_work,
368         .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
369         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
370         .load_ucode = iwlagn_load_ucode,
371         .dump_nic_event_log = iwl_dump_nic_event_log,
372         .dump_nic_error_log = iwl_dump_nic_error_log,
373         .dump_csr = iwl_dump_csr,
374         .dump_fh = iwl_dump_fh,
375         .init_alive_start = iwlagn_init_alive_start,
376         .alive_notify = iwlagn_alive_notify,
377         .send_tx_power = iwlagn_send_tx_power,
378         .update_chain_flags = iwl_update_chain_flags,
379         .set_channel_switch = iwl6000_hw_channel_switch,
380         .apm_ops = {
381                 .init = iwl_apm_init,
382                 .stop = iwl_apm_stop,
383                 .config = iwl6000_nic_config,
384                 .set_pwr_src = iwl_set_pwr_src,
385         },
386         .eeprom_ops = {
387                 .regulatory_bands = {
388                         EEPROM_REG_BAND_1_CHANNELS,
389                         EEPROM_REG_BAND_2_CHANNELS,
390                         EEPROM_REG_BAND_3_CHANNELS,
391                         EEPROM_REG_BAND_4_CHANNELS,
392                         EEPROM_REG_BAND_5_CHANNELS,
393                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
394                         EEPROM_REG_BAND_52_HT40_CHANNELS
395                 },
396                 .verify_signature  = iwlcore_eeprom_verify_signature,
397                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
398                 .release_semaphore = iwlcore_eeprom_release_semaphore,
399                 .calib_version  = iwlagn_eeprom_calib_version,
400                 .query_addr = iwlagn_eeprom_query_addr,
401                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
402         },
403         .post_associate = iwl_post_associate,
404         .isr = iwl_isr_ict,
405         .config_ap = iwl_config_ap,
406         .temp_ops = {
407                 .temperature = iwlagn_temperature,
408                 .set_ct_kill = iwl6000_set_ct_threshold,
409          },
410         .manage_ibss_station = iwlagn_manage_ibss_station,
411         .update_bcast_stations = iwl_update_bcast_stations,
412         .debugfs_ops = {
413                 .rx_stats_read = iwl_ucode_rx_stats_read,
414                 .tx_stats_read = iwl_ucode_tx_stats_read,
415                 .general_stats_read = iwl_ucode_general_stats_read,
416                 .bt_stats_read = iwl_ucode_bt_stats_read,
417                 .reply_tx_error = iwl_reply_tx_error_read,
418         },
419         .recover_from_tx_stall = iwl_bg_monitor_recover,
420         .check_plcp_health = iwl_good_plcp_health,
421         .check_ack_health = iwl_good_ack_health,
422         .txfifo_flush = iwlagn_txfifo_flush,
423         .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
424         .tt_ops = {
425                 .lower_power_detection = iwl_tt_is_low_power_state,
426                 .tt_power_mode = iwl_tt_current_power_mode,
427                 .ct_kill_check = iwl_check_for_ct_kill,
428         }
429 };
430
431 static struct iwl_nic_ops iwl6050_nic_ops = {
432         .additional_nic_config = &iwl6050_additional_nic_config,
433 };
434
435 static struct iwl_nic_ops iwl6050g2_nic_ops = {
436         .additional_nic_config = &iwl6050g2_additional_nic_config,
437 };
438
439 static const struct iwl_ops iwl6000_ops = {
440         .lib = &iwl6000_lib,
441         .hcmd = &iwlagn_hcmd,
442         .utils = &iwlagn_hcmd_utils,
443         .led = &iwlagn_led_ops,
444 };
445
446 static const struct iwl_ops iwl6050_ops = {
447         .lib = &iwl6000_lib,
448         .hcmd = &iwlagn_hcmd,
449         .utils = &iwlagn_hcmd_utils,
450         .led = &iwlagn_led_ops,
451         .nic = &iwl6050_nic_ops,
452 };
453
454 static const struct iwl_ops iwl6050g2_ops = {
455         .lib = &iwl6000_lib,
456         .hcmd = &iwlagn_hcmd,
457         .utils = &iwlagn_hcmd_utils,
458         .led = &iwlagn_led_ops,
459         .nic = &iwl6050g2_nic_ops,
460 };
461
462 static const struct iwl_ops iwl6000g2b_ops = {
463         .lib = &iwl6000g2b_lib,
464         .hcmd = &iwlagn_bt_hcmd,
465         .utils = &iwlagn_hcmd_utils,
466         .led = &iwlagn_led_ops,
467 };
468
469 struct iwl_cfg iwl6000g2a_2agn_cfg = {
470         .name = "6000 Series 2x2 AGN Gen2a",
471         .fw_name_pre = IWL6000G2A_FW_PRE,
472         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
473         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
474         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
475         .ops = &iwl6000_ops,
476         .eeprom_size = OTP_LOW_IMAGE_SIZE,
477         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
478         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
479         .num_of_queues = IWLAGN_NUM_QUEUES,
480         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
481         .mod_params = &iwlagn_mod_params,
482         .valid_tx_ant = ANT_AB,
483         .valid_rx_ant = ANT_AB,
484         .pll_cfg_val = 0,
485         .set_l0s = true,
486         .use_bsm = false,
487         .pa_type = IWL_PA_SYSTEM,
488         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
489         .shadow_ram_support = true,
490         .ht_greenfield_support = true,
491         .led_compensation = 51,
492         .use_rts_for_aggregation = true, /* use rts/cts protection */
493         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
494         .supports_idle = true,
495         .adv_thermal_throttle = true,
496         .support_ct_kill_exit = true,
497         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
498         .chain_noise_scale = 1000,
499         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
500         .max_event_log_size = 512,
501         .ucode_tracing = true,
502         .sensitivity_calib_by_driver = true,
503         .chain_noise_calib_by_driver = true,
504         .need_dc_calib = true,
505 };
506
507 struct iwl_cfg iwl6000g2a_2abg_cfg = {
508         .name = "6000 Series 2x2 ABG Gen2a",
509         .fw_name_pre = IWL6000G2A_FW_PRE,
510         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
511         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
512         .sku = IWL_SKU_A|IWL_SKU_G,
513         .ops = &iwl6000_ops,
514         .eeprom_size = OTP_LOW_IMAGE_SIZE,
515         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
516         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
517         .num_of_queues = IWLAGN_NUM_QUEUES,
518         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
519         .mod_params = &iwlagn_mod_params,
520         .valid_tx_ant = ANT_AB,
521         .valid_rx_ant = ANT_AB,
522         .pll_cfg_val = 0,
523         .set_l0s = true,
524         .use_bsm = false,
525         .pa_type = IWL_PA_SYSTEM,
526         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
527         .shadow_ram_support = true,
528         .led_compensation = 51,
529         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
530         .supports_idle = true,
531         .adv_thermal_throttle = true,
532         .support_ct_kill_exit = true,
533         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
534         .chain_noise_scale = 1000,
535         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
536         .max_event_log_size = 512,
537         .sensitivity_calib_by_driver = true,
538         .chain_noise_calib_by_driver = true,
539         .need_dc_calib = true,
540 };
541
542 struct iwl_cfg iwl6000g2a_2bg_cfg = {
543         .name = "6000 Series 2x2 BG Gen2a",
544         .fw_name_pre = IWL6000G2A_FW_PRE,
545         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
546         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
547         .sku = IWL_SKU_G,
548         .ops = &iwl6000_ops,
549         .eeprom_size = OTP_LOW_IMAGE_SIZE,
550         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
551         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
552         .num_of_queues = IWLAGN_NUM_QUEUES,
553         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
554         .mod_params = &iwlagn_mod_params,
555         .valid_tx_ant = ANT_AB,
556         .valid_rx_ant = ANT_AB,
557         .pll_cfg_val = 0,
558         .set_l0s = true,
559         .use_bsm = false,
560         .pa_type = IWL_PA_SYSTEM,
561         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
562         .shadow_ram_support = true,
563         .led_compensation = 51,
564         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
565         .supports_idle = true,
566         .adv_thermal_throttle = true,
567         .support_ct_kill_exit = true,
568         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
569         .chain_noise_scale = 1000,
570         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
571         .max_event_log_size = 512,
572         .sensitivity_calib_by_driver = true,
573         .chain_noise_calib_by_driver = true,
574         .need_dc_calib = true,
575 };
576
577 struct iwl_cfg iwl6000g2b_2agn_cfg = {
578         .name = "6000 Series 2x2 AGN Gen2b",
579         .fw_name_pre = IWL6000G2B_FW_PRE,
580         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
581         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
582         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
583         .ops = &iwl6000g2b_ops,
584         .eeprom_size = OTP_LOW_IMAGE_SIZE,
585         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
586         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
587         .num_of_queues = IWLAGN_NUM_QUEUES,
588         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
589         .mod_params = &iwlagn_mod_params,
590         .valid_tx_ant = ANT_AB,
591         .valid_rx_ant = ANT_AB,
592         .pll_cfg_val = 0,
593         .set_l0s = true,
594         .use_bsm = false,
595         .pa_type = IWL_PA_SYSTEM,
596         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
597         .shadow_ram_support = true,
598         .ht_greenfield_support = true,
599         .led_compensation = 51,
600         .use_rts_for_aggregation = true, /* use rts/cts protection */
601         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
602         .supports_idle = true,
603         .adv_thermal_throttle = true,
604         .support_ct_kill_exit = true,
605         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
606         .chain_noise_scale = 1000,
607         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
608         .max_event_log_size = 512,
609         .sensitivity_calib_by_driver = true,
610         .chain_noise_calib_by_driver = true,
611         .need_dc_calib = true,
612         .bt_statistics = true,
613         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
614         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
615         .advanced_bt_coexist = true,
616         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
617         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
618 };
619
620 struct iwl_cfg iwl6000g2b_2abg_cfg = {
621         .name = "6000 Series 2x2 ABG Gen2b",
622         .fw_name_pre = IWL6000G2B_FW_PRE,
623         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
624         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
625         .sku = IWL_SKU_A|IWL_SKU_G,
626         .ops = &iwl6000g2b_ops,
627         .eeprom_size = OTP_LOW_IMAGE_SIZE,
628         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
629         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
630         .num_of_queues = IWLAGN_NUM_QUEUES,
631         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
632         .mod_params = &iwlagn_mod_params,
633         .valid_tx_ant = ANT_AB,
634         .valid_rx_ant = ANT_AB,
635         .pll_cfg_val = 0,
636         .set_l0s = true,
637         .use_bsm = false,
638         .pa_type = IWL_PA_SYSTEM,
639         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
640         .shadow_ram_support = true,
641         .led_compensation = 51,
642         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
643         .supports_idle = true,
644         .adv_thermal_throttle = true,
645         .support_ct_kill_exit = true,
646         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
647         .chain_noise_scale = 1000,
648         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
649         .max_event_log_size = 512,
650         .sensitivity_calib_by_driver = true,
651         .chain_noise_calib_by_driver = true,
652         .need_dc_calib = true,
653         .bt_statistics = true,
654         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
655         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
656         .advanced_bt_coexist = true,
657         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
658         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
659 };
660
661 struct iwl_cfg iwl6000g2b_2bgn_cfg = {
662         .name = "6000 Series 2x2 BGN Gen2b",
663         .fw_name_pre = IWL6000G2B_FW_PRE,
664         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
665         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
666         .sku = IWL_SKU_G|IWL_SKU_N,
667         .ops = &iwl6000g2b_ops,
668         .eeprom_size = OTP_LOW_IMAGE_SIZE,
669         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
670         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
671         .num_of_queues = IWLAGN_NUM_QUEUES,
672         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
673         .mod_params = &iwlagn_mod_params,
674         .valid_tx_ant = ANT_AB,
675         .valid_rx_ant = ANT_AB,
676         .pll_cfg_val = 0,
677         .set_l0s = true,
678         .use_bsm = false,
679         .pa_type = IWL_PA_SYSTEM,
680         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
681         .shadow_ram_support = true,
682         .ht_greenfield_support = true,
683         .led_compensation = 51,
684         .use_rts_for_aggregation = true, /* use rts/cts protection */
685         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
686         .supports_idle = true,
687         .adv_thermal_throttle = true,
688         .support_ct_kill_exit = true,
689         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
690         .chain_noise_scale = 1000,
691         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
692         .max_event_log_size = 512,
693         .sensitivity_calib_by_driver = true,
694         .chain_noise_calib_by_driver = true,
695         .need_dc_calib = true,
696         .bt_statistics = true,
697         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
698         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
699         .advanced_bt_coexist = true,
700         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
701         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
702 };
703
704 struct iwl_cfg iwl6000g2b_2bg_cfg = {
705         .name = "6000 Series 2x2 BG Gen2b",
706         .fw_name_pre = IWL6000G2B_FW_PRE,
707         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
708         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
709         .sku = IWL_SKU_G,
710         .ops = &iwl6000g2b_ops,
711         .eeprom_size = OTP_LOW_IMAGE_SIZE,
712         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
713         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
714         .num_of_queues = IWLAGN_NUM_QUEUES,
715         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
716         .mod_params = &iwlagn_mod_params,
717         .valid_tx_ant = ANT_AB,
718         .valid_rx_ant = ANT_AB,
719         .pll_cfg_val = 0,
720         .set_l0s = true,
721         .use_bsm = false,
722         .pa_type = IWL_PA_SYSTEM,
723         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
724         .shadow_ram_support = true,
725         .led_compensation = 51,
726         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
727         .supports_idle = true,
728         .adv_thermal_throttle = true,
729         .support_ct_kill_exit = true,
730         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
731         .chain_noise_scale = 1000,
732         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
733         .max_event_log_size = 512,
734         .sensitivity_calib_by_driver = true,
735         .chain_noise_calib_by_driver = true,
736         .need_dc_calib = true,
737         .bt_statistics = true,
738         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
739         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
740         .advanced_bt_coexist = true,
741         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
742         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
743 };
744
745 struct iwl_cfg iwl6000g2b_bgn_cfg = {
746         .name = "6000 Series 1x2 BGN Gen2b",
747         .fw_name_pre = IWL6000G2B_FW_PRE,
748         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
749         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
750         .sku = IWL_SKU_G|IWL_SKU_N,
751         .ops = &iwl6000g2b_ops,
752         .eeprom_size = OTP_LOW_IMAGE_SIZE,
753         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
754         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
755         .num_of_queues = IWLAGN_NUM_QUEUES,
756         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
757         .mod_params = &iwlagn_mod_params,
758         .valid_tx_ant = ANT_A,
759         .valid_rx_ant = ANT_AB,
760         .pll_cfg_val = 0,
761         .set_l0s = true,
762         .use_bsm = false,
763         .pa_type = IWL_PA_SYSTEM,
764         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
765         .shadow_ram_support = true,
766         .ht_greenfield_support = true,
767         .led_compensation = 51,
768         .use_rts_for_aggregation = true, /* use rts/cts protection */
769         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
770         .supports_idle = true,
771         .adv_thermal_throttle = true,
772         .support_ct_kill_exit = true,
773         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
774         .chain_noise_scale = 1000,
775         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
776         .max_event_log_size = 512,
777         .sensitivity_calib_by_driver = true,
778         .chain_noise_calib_by_driver = true,
779         .need_dc_calib = true,
780         .bt_statistics = true,
781         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
782         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
783         .advanced_bt_coexist = true,
784         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
785         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
786 };
787
788 struct iwl_cfg iwl6000g2b_bg_cfg = {
789         .name = "6000 Series 1x2 BG Gen2b",
790         .fw_name_pre = IWL6000G2B_FW_PRE,
791         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
792         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
793         .sku = IWL_SKU_G,
794         .ops = &iwl6000g2b_ops,
795         .eeprom_size = OTP_LOW_IMAGE_SIZE,
796         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
797         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
798         .num_of_queues = IWLAGN_NUM_QUEUES,
799         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
800         .mod_params = &iwlagn_mod_params,
801         .valid_tx_ant = ANT_A,
802         .valid_rx_ant = ANT_AB,
803         .pll_cfg_val = 0,
804         .set_l0s = true,
805         .use_bsm = false,
806         .pa_type = IWL_PA_SYSTEM,
807         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
808         .shadow_ram_support = true,
809         .led_compensation = 51,
810         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
811         .supports_idle = true,
812         .adv_thermal_throttle = true,
813         .support_ct_kill_exit = true,
814         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
815         .chain_noise_scale = 1000,
816         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
817         .max_event_log_size = 512,
818         .sensitivity_calib_by_driver = true,
819         .chain_noise_calib_by_driver = true,
820         .need_dc_calib = true,
821         .bt_statistics = true,
822         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
823         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
824         .advanced_bt_coexist = true,
825         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
826         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
827 };
828
829 /*
830  * "i": Internal configuration, use internal Power Amplifier
831  */
832 struct iwl_cfg iwl6000i_2agn_cfg = {
833         .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
834         .fw_name_pre = IWL6000_FW_PRE,
835         .ucode_api_max = IWL6000_UCODE_API_MAX,
836         .ucode_api_min = IWL6000_UCODE_API_MIN,
837         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
838         .ops = &iwl6000_ops,
839         .eeprom_size = OTP_LOW_IMAGE_SIZE,
840         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
841         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
842         .num_of_queues = IWLAGN_NUM_QUEUES,
843         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
844         .mod_params = &iwlagn_mod_params,
845         .valid_tx_ant = ANT_BC,
846         .valid_rx_ant = ANT_BC,
847         .pll_cfg_val = 0,
848         .set_l0s = true,
849         .use_bsm = false,
850         .pa_type = IWL_PA_INTERNAL,
851         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
852         .shadow_ram_support = true,
853         .ht_greenfield_support = true,
854         .led_compensation = 51,
855         .use_rts_for_aggregation = true, /* use rts/cts protection */
856         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
857         .supports_idle = true,
858         .adv_thermal_throttle = true,
859         .support_ct_kill_exit = true,
860         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
861         .chain_noise_scale = 1000,
862         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
863         .max_event_log_size = 1024,
864         .ucode_tracing = true,
865         .sensitivity_calib_by_driver = true,
866         .chain_noise_calib_by_driver = true,
867 };
868
869 struct iwl_cfg iwl6000i_2abg_cfg = {
870         .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
871         .fw_name_pre = IWL6000_FW_PRE,
872         .ucode_api_max = IWL6000_UCODE_API_MAX,
873         .ucode_api_min = IWL6000_UCODE_API_MIN,
874         .sku = IWL_SKU_A|IWL_SKU_G,
875         .ops = &iwl6000_ops,
876         .eeprom_size = OTP_LOW_IMAGE_SIZE,
877         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
878         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
879         .num_of_queues = IWLAGN_NUM_QUEUES,
880         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
881         .mod_params = &iwlagn_mod_params,
882         .valid_tx_ant = ANT_BC,
883         .valid_rx_ant = ANT_BC,
884         .pll_cfg_val = 0,
885         .set_l0s = true,
886         .use_bsm = false,
887         .pa_type = IWL_PA_INTERNAL,
888         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
889         .shadow_ram_support = true,
890         .led_compensation = 51,
891         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
892         .supports_idle = true,
893         .adv_thermal_throttle = true,
894         .support_ct_kill_exit = true,
895         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
896         .chain_noise_scale = 1000,
897         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
898         .max_event_log_size = 1024,
899         .ucode_tracing = true,
900         .sensitivity_calib_by_driver = true,
901         .chain_noise_calib_by_driver = true,
902 };
903
904 struct iwl_cfg iwl6000i_2bg_cfg = {
905         .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
906         .fw_name_pre = IWL6000_FW_PRE,
907         .ucode_api_max = IWL6000_UCODE_API_MAX,
908         .ucode_api_min = IWL6000_UCODE_API_MIN,
909         .sku = IWL_SKU_G,
910         .ops = &iwl6000_ops,
911         .eeprom_size = OTP_LOW_IMAGE_SIZE,
912         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
913         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
914         .num_of_queues = IWLAGN_NUM_QUEUES,
915         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
916         .mod_params = &iwlagn_mod_params,
917         .valid_tx_ant = ANT_BC,
918         .valid_rx_ant = ANT_BC,
919         .pll_cfg_val = 0,
920         .set_l0s = true,
921         .use_bsm = false,
922         .pa_type = IWL_PA_INTERNAL,
923         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
924         .shadow_ram_support = true,
925         .led_compensation = 51,
926         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
927         .supports_idle = true,
928         .adv_thermal_throttle = true,
929         .support_ct_kill_exit = true,
930         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
931         .chain_noise_scale = 1000,
932         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
933         .max_event_log_size = 1024,
934         .ucode_tracing = true,
935         .sensitivity_calib_by_driver = true,
936         .chain_noise_calib_by_driver = true,
937 };
938
939 struct iwl_cfg iwl6050_2agn_cfg = {
940         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
941         .fw_name_pre = IWL6050_FW_PRE,
942         .ucode_api_max = IWL6050_UCODE_API_MAX,
943         .ucode_api_min = IWL6050_UCODE_API_MIN,
944         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
945         .ops = &iwl6050_ops,
946         .eeprom_size = OTP_LOW_IMAGE_SIZE,
947         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
948         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
949         .num_of_queues = IWLAGN_NUM_QUEUES,
950         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
951         .mod_params = &iwlagn_mod_params,
952         .valid_tx_ant = ANT_AB,
953         .valid_rx_ant = ANT_AB,
954         .pll_cfg_val = 0,
955         .set_l0s = true,
956         .use_bsm = false,
957         .pa_type = IWL_PA_SYSTEM,
958         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
959         .shadow_ram_support = true,
960         .ht_greenfield_support = true,
961         .led_compensation = 51,
962         .use_rts_for_aggregation = true, /* use rts/cts protection */
963         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
964         .supports_idle = true,
965         .adv_thermal_throttle = true,
966         .support_ct_kill_exit = true,
967         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
968         .chain_noise_scale = 1500,
969         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
970         .max_event_log_size = 1024,
971         .ucode_tracing = true,
972         .sensitivity_calib_by_driver = true,
973         .chain_noise_calib_by_driver = true,
974         .need_dc_calib = true,
975 };
976
977 struct iwl_cfg iwl6050g2_bgn_cfg = {
978         .name = "6050 Series 1x2 BGN Gen2",
979         .fw_name_pre = IWL6050_FW_PRE,
980         .ucode_api_max = IWL6050_UCODE_API_MAX,
981         .ucode_api_min = IWL6050_UCODE_API_MIN,
982         .sku = IWL_SKU_G|IWL_SKU_N,
983         .ops = &iwl6050g2_ops,
984         .eeprom_size = OTP_LOW_IMAGE_SIZE,
985         .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
986         .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
987         .num_of_queues = IWLAGN_NUM_QUEUES,
988         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
989         .mod_params = &iwlagn_mod_params,
990         .valid_tx_ant = ANT_A,
991         .valid_rx_ant = ANT_AB,
992         .pll_cfg_val = 0,
993         .set_l0s = true,
994         .use_bsm = false,
995         .pa_type = IWL_PA_SYSTEM,
996         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
997         .shadow_ram_support = true,
998         .ht_greenfield_support = true,
999         .led_compensation = 51,
1000         .use_rts_for_aggregation = true, /* use rts/cts protection */
1001         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1002         .supports_idle = true,
1003         .adv_thermal_throttle = true,
1004         .support_ct_kill_exit = true,
1005         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1006         .chain_noise_scale = 1500,
1007         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1008         .max_event_log_size = 1024,
1009         .ucode_tracing = true,
1010         .sensitivity_calib_by_driver = true,
1011         .chain_noise_calib_by_driver = true,
1012         .need_dc_calib = true,
1013 };
1014
1015 struct iwl_cfg iwl6050_2abg_cfg = {
1016         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
1017         .fw_name_pre = IWL6050_FW_PRE,
1018         .ucode_api_max = IWL6050_UCODE_API_MAX,
1019         .ucode_api_min = IWL6050_UCODE_API_MIN,
1020         .sku = IWL_SKU_A|IWL_SKU_G,
1021         .ops = &iwl6050_ops,
1022         .eeprom_size = OTP_LOW_IMAGE_SIZE,
1023         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
1024         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
1025         .num_of_queues = IWLAGN_NUM_QUEUES,
1026         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1027         .mod_params = &iwlagn_mod_params,
1028         .valid_tx_ant = ANT_AB,
1029         .valid_rx_ant = ANT_AB,
1030         .pll_cfg_val = 0,
1031         .set_l0s = true,
1032         .use_bsm = false,
1033         .pa_type = IWL_PA_SYSTEM,
1034         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
1035         .shadow_ram_support = true,
1036         .led_compensation = 51,
1037         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1038         .supports_idle = true,
1039         .adv_thermal_throttle = true,
1040         .support_ct_kill_exit = true,
1041         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1042         .chain_noise_scale = 1500,
1043         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1044         .max_event_log_size = 1024,
1045         .ucode_tracing = true,
1046         .sensitivity_calib_by_driver = true,
1047         .chain_noise_calib_by_driver = true,
1048         .need_dc_calib = true,
1049 };
1050
1051 struct iwl_cfg iwl6000_3agn_cfg = {
1052         .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
1053         .fw_name_pre = IWL6000_FW_PRE,
1054         .ucode_api_max = IWL6000_UCODE_API_MAX,
1055         .ucode_api_min = IWL6000_UCODE_API_MIN,
1056         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
1057         .ops = &iwl6000_ops,
1058         .eeprom_size = OTP_LOW_IMAGE_SIZE,
1059         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
1060         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
1061         .num_of_queues = IWLAGN_NUM_QUEUES,
1062         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1063         .mod_params = &iwlagn_mod_params,
1064         .valid_tx_ant = ANT_ABC,
1065         .valid_rx_ant = ANT_ABC,
1066         .pll_cfg_val = 0,
1067         .set_l0s = true,
1068         .use_bsm = false,
1069         .pa_type = IWL_PA_SYSTEM,
1070         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1071         .shadow_ram_support = true,
1072         .ht_greenfield_support = true,
1073         .led_compensation = 51,
1074         .use_rts_for_aggregation = true, /* use rts/cts protection */
1075         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1076         .supports_idle = true,
1077         .adv_thermal_throttle = true,
1078         .support_ct_kill_exit = true,
1079         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1080         .chain_noise_scale = 1000,
1081         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1082         .max_event_log_size = 1024,
1083         .ucode_tracing = true,
1084         .sensitivity_calib_by_driver = true,
1085         .chain_noise_calib_by_driver = true,
1086 };
1087
1088 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1089 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
1090 MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1091 MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));