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