iwlwifi: do not use huge command buffer for channel switch
[pandora-kernel.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 4
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 /* Indicate calibration version to uCode. */
87 static void iwl6050_set_calib_version(struct iwl_priv *priv)
88 {
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 /* NIC configuration for 6000 series */
95 static void iwl6000_nic_config(struct iwl_priv *priv)
96 {
97         u16 radio_cfg;
98
99         radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
100
101         /* write radio config values to register */
102         if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
103                 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
104                             EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
105                             EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
106                             EEPROM_RF_CFG_DASH_MSK(radio_cfg));
107
108         /* set CSR_HW_CONFIG_REG for uCode use */
109         iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
110                     CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
111                     CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
112
113         /* no locking required for register write */
114         if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
115                 /* 2x2 IPA phy type */
116                 iwl_write32(priv, CSR_GP_DRIVER_REG,
117                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
118         }
119         /* else do nothing, uCode configured */
120         if (priv->cfg->ops->lib->temp_ops.set_calib_version)
121                 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
122 }
123
124 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
125         .min_nrg_cck = 97,
126         .max_nrg_cck = 0, /* not used, set to 0 */
127         .auto_corr_min_ofdm = 80,
128         .auto_corr_min_ofdm_mrc = 128,
129         .auto_corr_min_ofdm_x1 = 105,
130         .auto_corr_min_ofdm_mrc_x1 = 192,
131
132         .auto_corr_max_ofdm = 145,
133         .auto_corr_max_ofdm_mrc = 232,
134         .auto_corr_max_ofdm_x1 = 110,
135         .auto_corr_max_ofdm_mrc_x1 = 232,
136
137         .auto_corr_min_cck = 125,
138         .auto_corr_max_cck = 175,
139         .auto_corr_min_cck_mrc = 160,
140         .auto_corr_max_cck_mrc = 310,
141         .nrg_th_cck = 97,
142         .nrg_th_ofdm = 100,
143
144         .barker_corr_th_min = 190,
145         .barker_corr_th_min_mrc = 390,
146         .nrg_th_cca = 62,
147 };
148
149 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
150 {
151         if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
152             priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
153                 priv->cfg->num_of_queues =
154                         priv->cfg->mod_params->num_of_queues;
155
156         priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
157         priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
158         priv->hw_params.scd_bc_tbls_size =
159                         priv->cfg->num_of_queues *
160                         sizeof(struct iwlagn_scd_bc_tbl);
161         priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
162         priv->hw_params.max_stations = IWL5000_STATION_COUNT;
163         priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
164
165         priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
166         priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
167
168         priv->hw_params.max_bsm_size = 0;
169         priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) |
170                                         BIT(IEEE80211_BAND_5GHZ);
171         priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
172
173         priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
174         priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
175         priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
176         priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
177
178         if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
179                 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
180
181         /* Set initial sensitivity parameters */
182         /* Set initial calibration set */
183         priv->hw_params.sens = &iwl6000_sensitivity;
184         priv->hw_params.calib_init_cfg =
185                 BIT(IWL_CALIB_XTAL)             |
186                 BIT(IWL_CALIB_LO)               |
187                 BIT(IWL_CALIB_TX_IQ)            |
188                 BIT(IWL_CALIB_BASE_BAND);
189
190         priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
191
192         return 0;
193 }
194
195 static int iwl6050_hw_set_hw_params(struct iwl_priv *priv)
196 {
197         if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
198             priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
199                 priv->cfg->num_of_queues =
200                         priv->cfg->mod_params->num_of_queues;
201
202         priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
203         priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
204         priv->hw_params.scd_bc_tbls_size =
205                         priv->cfg->num_of_queues *
206                         sizeof(struct iwlagn_scd_bc_tbl);
207         priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
208         priv->hw_params.max_stations = IWL5000_STATION_COUNT;
209         priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
210
211         priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
212         priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
213
214         priv->hw_params.max_bsm_size = 0;
215         priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) |
216                                         BIT(IEEE80211_BAND_5GHZ);
217         priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
218
219         priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
220         priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
221         priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
222         priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
223
224         if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
225                 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
226
227         /* Set initial sensitivity parameters */
228         /* Set initial calibration set */
229         priv->hw_params.sens = &iwl6000_sensitivity;
230         priv->hw_params.calib_init_cfg =
231                 BIT(IWL_CALIB_XTAL)             |
232                 BIT(IWL_CALIB_DC)               |
233                 BIT(IWL_CALIB_LO)               |
234                 BIT(IWL_CALIB_TX_IQ)            |
235                 BIT(IWL_CALIB_BASE_BAND);
236
237         priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
238
239         return 0;
240 }
241
242 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
243                                      struct ieee80211_channel_switch *ch_switch)
244 {
245         struct iwl6000_channel_switch_cmd cmd;
246         const struct iwl_channel_info *ch_info;
247         u32 switch_time_in_usec, ucode_switch_time;
248         u16 ch;
249         u32 tsf_low;
250         u8 switch_count;
251         u16 beacon_interval = le16_to_cpu(priv->rxon_timing.beacon_interval);
252         struct ieee80211_vif *vif = priv->vif;
253         struct iwl_host_cmd hcmd = {
254                 .id = REPLY_CHANNEL_SWITCH,
255                 .len = sizeof(cmd),
256                 .flags = CMD_SYNC,
257                 .data = &cmd,
258         };
259
260         cmd.band = priv->band == IEEE80211_BAND_2GHZ;
261         ch = ieee80211_frequency_to_channel(ch_switch->channel->center_freq);
262         IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
263                       priv->active_rxon.channel, ch);
264         cmd.channel = cpu_to_le16(ch);
265         cmd.rxon_flags = priv->staging_rxon.flags;
266         cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
267         switch_count = ch_switch->count;
268         tsf_low = ch_switch->timestamp & 0x0ffffffff;
269         /*
270          * calculate the ucode channel switch time
271          * adding TSF as one of the factor for when to switch
272          */
273         if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
274                 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
275                     beacon_interval)) {
276                         switch_count -= (priv->ucode_beacon_time -
277                                 tsf_low) / beacon_interval;
278                 } else
279                         switch_count = 0;
280         }
281         if (switch_count <= 1)
282                 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
283         else {
284                 switch_time_in_usec =
285                         vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
286                 ucode_switch_time = iwl_usecs_to_beacons(priv,
287                                                          switch_time_in_usec,
288                                                          beacon_interval);
289                 cmd.switch_time = iwl_add_beacon_time(priv,
290                                                       priv->ucode_beacon_time,
291                                                       ucode_switch_time,
292                                                       beacon_interval);
293         }
294         IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
295                       cmd.switch_time);
296         ch_info = iwl_get_channel_info(priv, priv->band, ch);
297         if (ch_info)
298                 cmd.expect_beacon = is_channel_radar(ch_info);
299         else {
300                 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
301                         priv->active_rxon.channel, ch);
302                 return -EFAULT;
303         }
304         priv->switch_rxon.channel = cmd.channel;
305         priv->switch_rxon.switch_in_progress = true;
306
307         return iwl_send_cmd_sync(priv, &hcmd);
308 }
309
310 static struct iwl_lib_ops iwl6000_lib = {
311         .set_hw_params = iwl6000_hw_set_hw_params,
312         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
313         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
314         .txq_set_sched = iwlagn_txq_set_sched,
315         .txq_agg_enable = iwlagn_txq_agg_enable,
316         .txq_agg_disable = iwlagn_txq_agg_disable,
317         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
318         .txq_free_tfd = iwl_hw_txq_free_tfd,
319         .txq_init = iwl_hw_tx_queue_init,
320         .rx_handler_setup = iwlagn_rx_handler_setup,
321         .setup_deferred_work = iwlagn_setup_deferred_work,
322         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
323         .load_ucode = iwlagn_load_ucode,
324         .dump_nic_event_log = iwl_dump_nic_event_log,
325         .dump_nic_error_log = iwl_dump_nic_error_log,
326         .dump_csr = iwl_dump_csr,
327         .dump_fh = iwl_dump_fh,
328         .init_alive_start = iwlagn_init_alive_start,
329         .alive_notify = iwlagn_alive_notify,
330         .send_tx_power = iwlagn_send_tx_power,
331         .update_chain_flags = iwl_update_chain_flags,
332         .set_channel_switch = iwl6000_hw_channel_switch,
333         .apm_ops = {
334                 .init = iwl_apm_init,
335                 .stop = iwl_apm_stop,
336                 .config = iwl6000_nic_config,
337                 .set_pwr_src = iwl_set_pwr_src,
338         },
339         .eeprom_ops = {
340                 .regulatory_bands = {
341                         EEPROM_REG_BAND_1_CHANNELS,
342                         EEPROM_REG_BAND_2_CHANNELS,
343                         EEPROM_REG_BAND_3_CHANNELS,
344                         EEPROM_REG_BAND_4_CHANNELS,
345                         EEPROM_REG_BAND_5_CHANNELS,
346                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
347                         EEPROM_REG_BAND_52_HT40_CHANNELS
348                 },
349                 .verify_signature  = iwlcore_eeprom_verify_signature,
350                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
351                 .release_semaphore = iwlcore_eeprom_release_semaphore,
352                 .calib_version  = iwlagn_eeprom_calib_version,
353                 .query_addr = iwlagn_eeprom_query_addr,
354                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
355         },
356         .post_associate = iwl_post_associate,
357         .isr = iwl_isr_ict,
358         .config_ap = iwl_config_ap,
359         .temp_ops = {
360                 .temperature = iwlagn_temperature,
361                 .set_ct_kill = iwl6000_set_ct_threshold,
362          },
363         .manage_ibss_station = iwlagn_manage_ibss_station,
364         .debugfs_ops = {
365                 .rx_stats_read = iwl_ucode_rx_stats_read,
366                 .tx_stats_read = iwl_ucode_tx_stats_read,
367                 .general_stats_read = iwl_ucode_general_stats_read,
368         },
369         .recover_from_tx_stall = iwl_bg_monitor_recover,
370         .check_plcp_health = iwl_good_plcp_health,
371         .check_ack_health = iwl_good_ack_health,
372 };
373
374 static const struct iwl_ops iwl6000_ops = {
375         .lib = &iwl6000_lib,
376         .hcmd = &iwlagn_hcmd,
377         .utils = &iwlagn_hcmd_utils,
378         .led = &iwlagn_led_ops,
379 };
380
381 static void do_not_send_bt_config(struct iwl_priv *priv)
382 {
383 }
384
385 static struct iwl_hcmd_ops iwl6000g2b_hcmd = {
386         .rxon_assoc = iwlagn_send_rxon_assoc,
387         .commit_rxon = iwl_commit_rxon,
388         .set_rxon_chain = iwl_set_rxon_chain,
389         .set_tx_ant = iwlagn_send_tx_ant_config,
390         .send_bt_config = do_not_send_bt_config,
391 };
392
393 static const struct iwl_ops iwl6000g2b_ops = {
394         .lib = &iwl6000_lib,
395         .hcmd = &iwl6000g2b_hcmd,
396         .utils = &iwlagn_hcmd_utils,
397         .led = &iwlagn_led_ops,
398 };
399
400 static struct iwl_lib_ops iwl6050_lib = {
401         .set_hw_params = iwl6050_hw_set_hw_params,
402         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
403         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
404         .txq_set_sched = iwlagn_txq_set_sched,
405         .txq_agg_enable = iwlagn_txq_agg_enable,
406         .txq_agg_disable = iwlagn_txq_agg_disable,
407         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
408         .txq_free_tfd = iwl_hw_txq_free_tfd,
409         .txq_init = iwl_hw_tx_queue_init,
410         .rx_handler_setup = iwlagn_rx_handler_setup,
411         .setup_deferred_work = iwlagn_setup_deferred_work,
412         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
413         .load_ucode = iwlagn_load_ucode,
414         .dump_nic_event_log = iwl_dump_nic_event_log,
415         .dump_nic_error_log = iwl_dump_nic_error_log,
416         .dump_csr = iwl_dump_csr,
417         .dump_fh = iwl_dump_fh,
418         .init_alive_start = iwlagn_init_alive_start,
419         .alive_notify = iwlagn_alive_notify,
420         .send_tx_power = iwlagn_send_tx_power,
421         .update_chain_flags = iwl_update_chain_flags,
422         .set_channel_switch = iwl6000_hw_channel_switch,
423         .apm_ops = {
424                 .init = iwl_apm_init,
425                 .stop = iwl_apm_stop,
426                 .config = iwl6000_nic_config,
427                 .set_pwr_src = iwl_set_pwr_src,
428         },
429         .eeprom_ops = {
430                 .regulatory_bands = {
431                         EEPROM_REG_BAND_1_CHANNELS,
432                         EEPROM_REG_BAND_2_CHANNELS,
433                         EEPROM_REG_BAND_3_CHANNELS,
434                         EEPROM_REG_BAND_4_CHANNELS,
435                         EEPROM_REG_BAND_5_CHANNELS,
436                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
437                         EEPROM_REG_BAND_52_HT40_CHANNELS
438                 },
439                 .verify_signature  = iwlcore_eeprom_verify_signature,
440                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
441                 .release_semaphore = iwlcore_eeprom_release_semaphore,
442                 .calib_version  = iwlagn_eeprom_calib_version,
443                 .query_addr = iwlagn_eeprom_query_addr,
444                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
445         },
446         .post_associate = iwl_post_associate,
447         .isr = iwl_isr_ict,
448         .config_ap = iwl_config_ap,
449         .temp_ops = {
450                 .temperature = iwlagn_temperature,
451                 .set_ct_kill = iwl6000_set_ct_threshold,
452                 .set_calib_version = iwl6050_set_calib_version,
453          },
454         .manage_ibss_station = iwlagn_manage_ibss_station,
455         .debugfs_ops = {
456                 .rx_stats_read = iwl_ucode_rx_stats_read,
457                 .tx_stats_read = iwl_ucode_tx_stats_read,
458                 .general_stats_read = iwl_ucode_general_stats_read,
459         },
460         .recover_from_tx_stall = iwl_bg_monitor_recover,
461         .check_plcp_health = iwl_good_plcp_health,
462         .check_ack_health = iwl_good_ack_health,
463 };
464
465 static const struct iwl_ops iwl6050_ops = {
466         .lib = &iwl6050_lib,
467         .hcmd = &iwlagn_hcmd,
468         .utils = &iwlagn_hcmd_utils,
469         .led = &iwlagn_led_ops,
470 };
471
472
473 struct iwl_cfg iwl6000g2a_2agn_cfg = {
474         .name = "6000 Series 2x2 AGN Gen2a",
475         .fw_name_pre = IWL6000G2A_FW_PRE,
476         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
477         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
478         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
479         .ops = &iwl6000_ops,
480         .eeprom_size = OTP_LOW_IMAGE_SIZE,
481         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
482         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
483         .num_of_queues = IWLAGN_NUM_QUEUES,
484         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
485         .mod_params = &iwlagn_mod_params,
486         .valid_tx_ant = ANT_AB,
487         .valid_rx_ant = ANT_AB,
488         .pll_cfg_val = 0,
489         .set_l0s = true,
490         .use_bsm = false,
491         .pa_type = IWL_PA_SYSTEM,
492         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
493         .shadow_ram_support = true,
494         .ht_greenfield_support = true,
495         .led_compensation = 51,
496         .use_rts_for_ht = true, /* use rts/cts protection */
497         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
498         .supports_idle = true,
499         .adv_thermal_throttle = true,
500         .support_ct_kill_exit = true,
501         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
502         .chain_noise_scale = 1000,
503         .monitor_recover_period = IWL_MONITORING_PERIOD,
504         .max_event_log_size = 512,
505         .ucode_tracing = true,
506         .sensitivity_calib_by_driver = true,
507         .chain_noise_calib_by_driver = true,
508 };
509
510 struct iwl_cfg iwl6000g2a_2abg_cfg = {
511         .name = "6000 Series 2x2 ABG Gen2a",
512         .fw_name_pre = IWL6000G2A_FW_PRE,
513         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
514         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
515         .sku = IWL_SKU_A|IWL_SKU_G,
516         .ops = &iwl6000_ops,
517         .eeprom_size = OTP_LOW_IMAGE_SIZE,
518         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
519         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
520         .num_of_queues = IWLAGN_NUM_QUEUES,
521         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
522         .mod_params = &iwlagn_mod_params,
523         .valid_tx_ant = ANT_AB,
524         .valid_rx_ant = ANT_AB,
525         .pll_cfg_val = 0,
526         .set_l0s = true,
527         .use_bsm = false,
528         .pa_type = IWL_PA_SYSTEM,
529         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
530         .shadow_ram_support = true,
531         .led_compensation = 51,
532         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
533         .supports_idle = true,
534         .adv_thermal_throttle = true,
535         .support_ct_kill_exit = true,
536         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
537         .chain_noise_scale = 1000,
538         .monitor_recover_period = IWL_MONITORING_PERIOD,
539         .max_event_log_size = 512,
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_MONITORING_PERIOD,
571         .max_event_log_size = 512,
572 };
573
574 struct iwl_cfg iwl6000g2b_2agn_cfg = {
575         .name = "6000 Series 2x2 AGN Gen2b",
576         .fw_name_pre = IWL6000G2B_FW_PRE,
577         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
578         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
579         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
580         .ops = &iwl6000g2b_ops,
581         .eeprom_size = OTP_LOW_IMAGE_SIZE,
582         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
583         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
584         .num_of_queues = IWLAGN_NUM_QUEUES,
585         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
586         .mod_params = &iwlagn_mod_params,
587         .valid_tx_ant = ANT_AB,
588         .valid_rx_ant = ANT_AB,
589         .pll_cfg_val = 0,
590         .set_l0s = true,
591         .use_bsm = false,
592         .pa_type = IWL_PA_SYSTEM,
593         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
594         .shadow_ram_support = true,
595         .ht_greenfield_support = true,
596         .led_compensation = 51,
597         .use_rts_for_ht = true, /* use rts/cts protection */
598         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
599         .supports_idle = true,
600         .adv_thermal_throttle = true,
601         .support_ct_kill_exit = true,
602         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
603         .chain_noise_scale = 1000,
604         .monitor_recover_period = IWL_MONITORING_PERIOD,
605         .max_event_log_size = 512,
606 };
607
608 struct iwl_cfg iwl6000g2b_2abg_cfg = {
609         .name = "6000 Series 2x2 ABG Gen2b",
610         .fw_name_pre = IWL6000G2B_FW_PRE,
611         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
612         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
613         .sku = IWL_SKU_A|IWL_SKU_G,
614         .ops = &iwl6000g2b_ops,
615         .eeprom_size = OTP_LOW_IMAGE_SIZE,
616         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
617         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
618         .num_of_queues = IWLAGN_NUM_QUEUES,
619         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
620         .mod_params = &iwlagn_mod_params,
621         .valid_tx_ant = ANT_AB,
622         .valid_rx_ant = ANT_AB,
623         .pll_cfg_val = 0,
624         .set_l0s = true,
625         .use_bsm = false,
626         .pa_type = IWL_PA_SYSTEM,
627         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
628         .shadow_ram_support = true,
629         .led_compensation = 51,
630         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
631         .supports_idle = true,
632         .adv_thermal_throttle = true,
633         .support_ct_kill_exit = true,
634         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
635         .chain_noise_scale = 1000,
636         .monitor_recover_period = IWL_MONITORING_PERIOD,
637         .max_event_log_size = 512,
638 };
639
640 struct iwl_cfg iwl6000g2b_2bgn_cfg = {
641         .name = "6000 Series 2x2 BGN Gen2b",
642         .fw_name_pre = IWL6000G2B_FW_PRE,
643         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
644         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
645         .sku = IWL_SKU_G|IWL_SKU_N,
646         .ops = &iwl6000g2b_ops,
647         .eeprom_size = OTP_LOW_IMAGE_SIZE,
648         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
649         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
650         .num_of_queues = IWLAGN_NUM_QUEUES,
651         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
652         .mod_params = &iwlagn_mod_params,
653         .valid_tx_ant = ANT_AB,
654         .valid_rx_ant = ANT_AB,
655         .pll_cfg_val = 0,
656         .set_l0s = true,
657         .use_bsm = false,
658         .pa_type = IWL_PA_SYSTEM,
659         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
660         .shadow_ram_support = true,
661         .ht_greenfield_support = true,
662         .led_compensation = 51,
663         .use_rts_for_ht = true, /* use rts/cts protection */
664         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
665         .supports_idle = true,
666         .adv_thermal_throttle = true,
667         .support_ct_kill_exit = true,
668         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
669         .chain_noise_scale = 1000,
670         .monitor_recover_period = IWL_MONITORING_PERIOD,
671         .max_event_log_size = 512,
672 };
673
674 struct iwl_cfg iwl6000g2b_2bg_cfg = {
675         .name = "6000 Series 2x2 BG Gen2b",
676         .fw_name_pre = IWL6000G2B_FW_PRE,
677         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
678         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
679         .sku = IWL_SKU_G,
680         .ops = &iwl6000g2b_ops,
681         .eeprom_size = OTP_LOW_IMAGE_SIZE,
682         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
683         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
684         .num_of_queues = IWLAGN_NUM_QUEUES,
685         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
686         .mod_params = &iwlagn_mod_params,
687         .valid_tx_ant = ANT_AB,
688         .valid_rx_ant = ANT_AB,
689         .pll_cfg_val = 0,
690         .set_l0s = true,
691         .use_bsm = false,
692         .pa_type = IWL_PA_SYSTEM,
693         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
694         .shadow_ram_support = true,
695         .led_compensation = 51,
696         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
697         .supports_idle = true,
698         .adv_thermal_throttle = true,
699         .support_ct_kill_exit = true,
700         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
701         .chain_noise_scale = 1000,
702         .monitor_recover_period = IWL_MONITORING_PERIOD,
703         .max_event_log_size = 512,
704 };
705
706 struct iwl_cfg iwl6000g2b_bgn_cfg = {
707         .name = "6000 Series 1x2 BGN Gen2b",
708         .fw_name_pre = IWL6000G2B_FW_PRE,
709         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
710         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
711         .sku = IWL_SKU_G|IWL_SKU_N,
712         .ops = &iwl6000g2b_ops,
713         .eeprom_size = OTP_LOW_IMAGE_SIZE,
714         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
715         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
716         .num_of_queues = IWLAGN_NUM_QUEUES,
717         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
718         .mod_params = &iwlagn_mod_params,
719         .valid_tx_ant = ANT_A,
720         .valid_rx_ant = ANT_AB,
721         .pll_cfg_val = 0,
722         .set_l0s = true,
723         .use_bsm = false,
724         .pa_type = IWL_PA_SYSTEM,
725         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
726         .shadow_ram_support = true,
727         .ht_greenfield_support = true,
728         .led_compensation = 51,
729         .use_rts_for_ht = true, /* use rts/cts protection */
730         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
731         .supports_idle = true,
732         .adv_thermal_throttle = true,
733         .support_ct_kill_exit = true,
734         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
735         .chain_noise_scale = 1000,
736         .monitor_recover_period = IWL_MONITORING_PERIOD,
737         .max_event_log_size = 512,
738 };
739
740 struct iwl_cfg iwl6000g2b_bg_cfg = {
741         .name = "6000 Series 1x2 BG Gen2b",
742         .fw_name_pre = IWL6000G2B_FW_PRE,
743         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
744         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
745         .sku = IWL_SKU_G,
746         .ops = &iwl6000g2b_ops,
747         .eeprom_size = OTP_LOW_IMAGE_SIZE,
748         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
749         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
750         .num_of_queues = IWLAGN_NUM_QUEUES,
751         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
752         .mod_params = &iwlagn_mod_params,
753         .valid_tx_ant = ANT_A,
754         .valid_rx_ant = ANT_AB,
755         .pll_cfg_val = 0,
756         .set_l0s = true,
757         .use_bsm = false,
758         .pa_type = IWL_PA_SYSTEM,
759         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
760         .shadow_ram_support = true,
761         .led_compensation = 51,
762         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
763         .supports_idle = true,
764         .adv_thermal_throttle = true,
765         .support_ct_kill_exit = true,
766         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
767         .chain_noise_scale = 1000,
768         .monitor_recover_period = IWL_MONITORING_PERIOD,
769         .max_event_log_size = 512,
770 };
771
772 /*
773  * "i": Internal configuration, use internal Power Amplifier
774  */
775 struct iwl_cfg iwl6000i_2agn_cfg = {
776         .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
777         .fw_name_pre = IWL6000_FW_PRE,
778         .ucode_api_max = IWL6000_UCODE_API_MAX,
779         .ucode_api_min = IWL6000_UCODE_API_MIN,
780         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
781         .ops = &iwl6000_ops,
782         .eeprom_size = OTP_LOW_IMAGE_SIZE,
783         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
784         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
785         .num_of_queues = IWLAGN_NUM_QUEUES,
786         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
787         .mod_params = &iwlagn_mod_params,
788         .valid_tx_ant = ANT_BC,
789         .valid_rx_ant = ANT_BC,
790         .pll_cfg_val = 0,
791         .set_l0s = true,
792         .use_bsm = false,
793         .pa_type = IWL_PA_INTERNAL,
794         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
795         .shadow_ram_support = true,
796         .ht_greenfield_support = true,
797         .led_compensation = 51,
798         .use_rts_for_ht = true, /* use rts/cts protection */
799         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
800         .supports_idle = true,
801         .adv_thermal_throttle = true,
802         .support_ct_kill_exit = true,
803         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
804         .chain_noise_scale = 1000,
805         .monitor_recover_period = IWL_MONITORING_PERIOD,
806         .max_event_log_size = 1024,
807         .ucode_tracing = true,
808         .sensitivity_calib_by_driver = true,
809         .chain_noise_calib_by_driver = true,
810 };
811
812 struct iwl_cfg iwl6000i_2abg_cfg = {
813         .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
814         .fw_name_pre = IWL6000_FW_PRE,
815         .ucode_api_max = IWL6000_UCODE_API_MAX,
816         .ucode_api_min = IWL6000_UCODE_API_MIN,
817         .sku = IWL_SKU_A|IWL_SKU_G,
818         .ops = &iwl6000_ops,
819         .eeprom_size = OTP_LOW_IMAGE_SIZE,
820         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
821         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
822         .num_of_queues = IWLAGN_NUM_QUEUES,
823         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
824         .mod_params = &iwlagn_mod_params,
825         .valid_tx_ant = ANT_BC,
826         .valid_rx_ant = ANT_BC,
827         .pll_cfg_val = 0,
828         .set_l0s = true,
829         .use_bsm = false,
830         .pa_type = IWL_PA_INTERNAL,
831         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
832         .shadow_ram_support = true,
833         .led_compensation = 51,
834         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
835         .supports_idle = true,
836         .adv_thermal_throttle = true,
837         .support_ct_kill_exit = true,
838         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
839         .chain_noise_scale = 1000,
840         .monitor_recover_period = IWL_MONITORING_PERIOD,
841         .max_event_log_size = 1024,
842         .ucode_tracing = true,
843         .sensitivity_calib_by_driver = true,
844         .chain_noise_calib_by_driver = true,
845 };
846
847 struct iwl_cfg iwl6000i_2bg_cfg = {
848         .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
849         .fw_name_pre = IWL6000_FW_PRE,
850         .ucode_api_max = IWL6000_UCODE_API_MAX,
851         .ucode_api_min = IWL6000_UCODE_API_MIN,
852         .sku = IWL_SKU_G,
853         .ops = &iwl6000_ops,
854         .eeprom_size = OTP_LOW_IMAGE_SIZE,
855         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
856         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
857         .num_of_queues = IWLAGN_NUM_QUEUES,
858         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
859         .mod_params = &iwlagn_mod_params,
860         .valid_tx_ant = ANT_BC,
861         .valid_rx_ant = ANT_BC,
862         .pll_cfg_val = 0,
863         .set_l0s = true,
864         .use_bsm = false,
865         .pa_type = IWL_PA_INTERNAL,
866         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
867         .shadow_ram_support = true,
868         .led_compensation = 51,
869         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
870         .supports_idle = true,
871         .adv_thermal_throttle = true,
872         .support_ct_kill_exit = true,
873         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
874         .chain_noise_scale = 1000,
875         .monitor_recover_period = IWL_MONITORING_PERIOD,
876         .max_event_log_size = 1024,
877         .ucode_tracing = true,
878         .sensitivity_calib_by_driver = true,
879         .chain_noise_calib_by_driver = true,
880 };
881
882 struct iwl_cfg iwl6050_2agn_cfg = {
883         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
884         .fw_name_pre = IWL6050_FW_PRE,
885         .ucode_api_max = IWL6050_UCODE_API_MAX,
886         .ucode_api_min = IWL6050_UCODE_API_MIN,
887         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
888         .ops = &iwl6050_ops,
889         .eeprom_size = OTP_LOW_IMAGE_SIZE,
890         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
891         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
892         .num_of_queues = IWLAGN_NUM_QUEUES,
893         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
894         .mod_params = &iwlagn_mod_params,
895         .valid_tx_ant = ANT_AB,
896         .valid_rx_ant = ANT_AB,
897         .pll_cfg_val = 0,
898         .set_l0s = true,
899         .use_bsm = false,
900         .pa_type = IWL_PA_SYSTEM,
901         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
902         .shadow_ram_support = true,
903         .ht_greenfield_support = true,
904         .led_compensation = 51,
905         .use_rts_for_ht = true, /* use rts/cts protection */
906         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
907         .supports_idle = true,
908         .adv_thermal_throttle = true,
909         .support_ct_kill_exit = true,
910         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
911         .chain_noise_scale = 1500,
912         .monitor_recover_period = IWL_MONITORING_PERIOD,
913         .max_event_log_size = 1024,
914         .ucode_tracing = true,
915         .sensitivity_calib_by_driver = true,
916         .chain_noise_calib_by_driver = true,
917 };
918
919 struct iwl_cfg iwl6050_2abg_cfg = {
920         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
921         .fw_name_pre = IWL6050_FW_PRE,
922         .ucode_api_max = IWL6050_UCODE_API_MAX,
923         .ucode_api_min = IWL6050_UCODE_API_MIN,
924         .sku = IWL_SKU_A|IWL_SKU_G,
925         .ops = &iwl6050_ops,
926         .eeprom_size = OTP_LOW_IMAGE_SIZE,
927         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
928         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
929         .num_of_queues = IWLAGN_NUM_QUEUES,
930         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
931         .mod_params = &iwlagn_mod_params,
932         .valid_tx_ant = ANT_AB,
933         .valid_rx_ant = ANT_AB,
934         .pll_cfg_val = 0,
935         .set_l0s = true,
936         .use_bsm = false,
937         .pa_type = IWL_PA_SYSTEM,
938         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
939         .shadow_ram_support = true,
940         .led_compensation = 51,
941         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
942         .supports_idle = true,
943         .adv_thermal_throttle = true,
944         .support_ct_kill_exit = true,
945         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
946         .chain_noise_scale = 1500,
947         .monitor_recover_period = IWL_MONITORING_PERIOD,
948         .max_event_log_size = 1024,
949         .ucode_tracing = true,
950         .sensitivity_calib_by_driver = true,
951         .chain_noise_calib_by_driver = true,
952 };
953
954 struct iwl_cfg iwl6000_3agn_cfg = {
955         .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
956         .fw_name_pre = IWL6000_FW_PRE,
957         .ucode_api_max = IWL6000_UCODE_API_MAX,
958         .ucode_api_min = IWL6000_UCODE_API_MIN,
959         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
960         .ops = &iwl6000_ops,
961         .eeprom_size = OTP_LOW_IMAGE_SIZE,
962         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
963         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
964         .num_of_queues = IWLAGN_NUM_QUEUES,
965         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
966         .mod_params = &iwlagn_mod_params,
967         .valid_tx_ant = ANT_ABC,
968         .valid_rx_ant = ANT_ABC,
969         .pll_cfg_val = 0,
970         .set_l0s = true,
971         .use_bsm = false,
972         .pa_type = IWL_PA_SYSTEM,
973         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
974         .shadow_ram_support = true,
975         .ht_greenfield_support = true,
976         .led_compensation = 51,
977         .use_rts_for_ht = true, /* use rts/cts protection */
978         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
979         .supports_idle = true,
980         .adv_thermal_throttle = true,
981         .support_ct_kill_exit = true,
982         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
983         .chain_noise_scale = 1000,
984         .monitor_recover_period = IWL_MONITORING_PERIOD,
985         .max_event_log_size = 1024,
986         .ucode_tracing = true,
987         .sensitivity_calib_by_driver = true,
988         .chain_noise_calib_by_driver = true,
989 };
990
991 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
992 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
993 MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
994 MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));