]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/net/wireless/iwlwifi/iwl-6000.c
iwlagn: keep track of failure tx status
[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 /* 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->contexts[IWL_RXON_CTX_BSS].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         /*
202          * MULTI-FIXME
203          * See iwl_mac_channel_switch.
204          */
205         struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
206         struct iwl6000_channel_switch_cmd cmd;
207         const struct iwl_channel_info *ch_info;
208         u32 switch_time_in_usec, ucode_switch_time;
209         u16 ch;
210         u32 tsf_low;
211         u8 switch_count;
212         u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
213         struct ieee80211_vif *vif = ctx->vif;
214         struct iwl_host_cmd hcmd = {
215                 .id = REPLY_CHANNEL_SWITCH,
216                 .len = sizeof(cmd),
217                 .flags = CMD_SYNC,
218                 .data = &cmd,
219         };
220
221         cmd.band = priv->band == IEEE80211_BAND_2GHZ;
222         ch = ch_switch->channel->hw_value;
223         IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
224                       ctx->active.channel, ch);
225         cmd.channel = cpu_to_le16(ch);
226         cmd.rxon_flags = ctx->staging.flags;
227         cmd.rxon_filter_flags = ctx->staging.filter_flags;
228         switch_count = ch_switch->count;
229         tsf_low = ch_switch->timestamp & 0x0ffffffff;
230         /*
231          * calculate the ucode channel switch time
232          * adding TSF as one of the factor for when to switch
233          */
234         if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
235                 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
236                     beacon_interval)) {
237                         switch_count -= (priv->ucode_beacon_time -
238                                 tsf_low) / beacon_interval;
239                 } else
240                         switch_count = 0;
241         }
242         if (switch_count <= 1)
243                 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
244         else {
245                 switch_time_in_usec =
246                         vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
247                 ucode_switch_time = iwl_usecs_to_beacons(priv,
248                                                          switch_time_in_usec,
249                                                          beacon_interval);
250                 cmd.switch_time = iwl_add_beacon_time(priv,
251                                                       priv->ucode_beacon_time,
252                                                       ucode_switch_time,
253                                                       beacon_interval);
254         }
255         IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
256                       cmd.switch_time);
257         ch_info = iwl_get_channel_info(priv, priv->band, ch);
258         if (ch_info)
259                 cmd.expect_beacon = is_channel_radar(ch_info);
260         else {
261                 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
262                         ctx->active.channel, ch);
263                 return -EFAULT;
264         }
265         priv->switch_rxon.channel = cmd.channel;
266         priv->switch_rxon.switch_in_progress = true;
267
268         return iwl_send_cmd_sync(priv, &hcmd);
269 }
270
271 static struct iwl_lib_ops iwl6000_lib = {
272         .set_hw_params = iwl6000_hw_set_hw_params,
273         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
274         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
275         .txq_set_sched = iwlagn_txq_set_sched,
276         .txq_agg_enable = iwlagn_txq_agg_enable,
277         .txq_agg_disable = iwlagn_txq_agg_disable,
278         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
279         .txq_free_tfd = iwl_hw_txq_free_tfd,
280         .txq_init = iwl_hw_tx_queue_init,
281         .rx_handler_setup = iwlagn_rx_handler_setup,
282         .setup_deferred_work = iwlagn_setup_deferred_work,
283         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
284         .load_ucode = iwlagn_load_ucode,
285         .dump_nic_event_log = iwl_dump_nic_event_log,
286         .dump_nic_error_log = iwl_dump_nic_error_log,
287         .dump_csr = iwl_dump_csr,
288         .dump_fh = iwl_dump_fh,
289         .init_alive_start = iwlagn_init_alive_start,
290         .alive_notify = iwlagn_alive_notify,
291         .send_tx_power = iwlagn_send_tx_power,
292         .update_chain_flags = iwl_update_chain_flags,
293         .set_channel_switch = iwl6000_hw_channel_switch,
294         .apm_ops = {
295                 .init = iwl_apm_init,
296                 .stop = iwl_apm_stop,
297                 .config = iwl6000_nic_config,
298                 .set_pwr_src = iwl_set_pwr_src,
299         },
300         .eeprom_ops = {
301                 .regulatory_bands = {
302                         EEPROM_REG_BAND_1_CHANNELS,
303                         EEPROM_REG_BAND_2_CHANNELS,
304                         EEPROM_REG_BAND_3_CHANNELS,
305                         EEPROM_REG_BAND_4_CHANNELS,
306                         EEPROM_REG_BAND_5_CHANNELS,
307                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
308                         EEPROM_REG_BAND_52_HT40_CHANNELS
309                 },
310                 .verify_signature  = iwlcore_eeprom_verify_signature,
311                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
312                 .release_semaphore = iwlcore_eeprom_release_semaphore,
313                 .calib_version  = iwlagn_eeprom_calib_version,
314                 .query_addr = iwlagn_eeprom_query_addr,
315                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
316         },
317         .post_associate = iwl_post_associate,
318         .isr = iwl_isr_ict,
319         .config_ap = iwl_config_ap,
320         .temp_ops = {
321                 .temperature = iwlagn_temperature,
322                 .set_ct_kill = iwl6000_set_ct_threshold,
323                 .set_calib_version = iwl6000_set_calib_version,
324          },
325         .manage_ibss_station = iwlagn_manage_ibss_station,
326         .update_bcast_stations = iwl_update_bcast_stations,
327         .debugfs_ops = {
328                 .rx_stats_read = iwl_ucode_rx_stats_read,
329                 .tx_stats_read = iwl_ucode_tx_stats_read,
330                 .general_stats_read = iwl_ucode_general_stats_read,
331                 .bt_stats_read = iwl_ucode_bt_stats_read,
332                 .reply_tx_error = iwl_reply_tx_error_read,
333         },
334         .recover_from_tx_stall = iwl_bg_monitor_recover,
335         .check_plcp_health = iwl_good_plcp_health,
336         .check_ack_health = iwl_good_ack_health,
337         .txfifo_flush = iwlagn_txfifo_flush,
338         .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
339         .tt_ops = {
340                 .lower_power_detection = iwl_tt_is_low_power_state,
341                 .tt_power_mode = iwl_tt_current_power_mode,
342                 .ct_kill_check = iwl_check_for_ct_kill,
343         }
344 };
345
346 static struct iwl_lib_ops iwl6000g2b_lib = {
347         .set_hw_params = iwl6000_hw_set_hw_params,
348         .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
349         .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
350         .txq_set_sched = iwlagn_txq_set_sched,
351         .txq_agg_enable = iwlagn_txq_agg_enable,
352         .txq_agg_disable = iwlagn_txq_agg_disable,
353         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
354         .txq_free_tfd = iwl_hw_txq_free_tfd,
355         .txq_init = iwl_hw_tx_queue_init,
356         .rx_handler_setup = iwlagn_bt_rx_handler_setup,
357         .setup_deferred_work = iwlagn_bt_setup_deferred_work,
358         .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
359         .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
360         .load_ucode = iwlagn_load_ucode,
361         .dump_nic_event_log = iwl_dump_nic_event_log,
362         .dump_nic_error_log = iwl_dump_nic_error_log,
363         .dump_csr = iwl_dump_csr,
364         .dump_fh = iwl_dump_fh,
365         .init_alive_start = iwlagn_init_alive_start,
366         .alive_notify = iwlagn_alive_notify,
367         .send_tx_power = iwlagn_send_tx_power,
368         .update_chain_flags = iwl_update_chain_flags,
369         .set_channel_switch = iwl6000_hw_channel_switch,
370         .apm_ops = {
371                 .init = iwl_apm_init,
372                 .stop = iwl_apm_stop,
373                 .config = iwl6000_nic_config,
374                 .set_pwr_src = iwl_set_pwr_src,
375         },
376         .eeprom_ops = {
377                 .regulatory_bands = {
378                         EEPROM_REG_BAND_1_CHANNELS,
379                         EEPROM_REG_BAND_2_CHANNELS,
380                         EEPROM_REG_BAND_3_CHANNELS,
381                         EEPROM_REG_BAND_4_CHANNELS,
382                         EEPROM_REG_BAND_5_CHANNELS,
383                         EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
384                         EEPROM_REG_BAND_52_HT40_CHANNELS
385                 },
386                 .verify_signature  = iwlcore_eeprom_verify_signature,
387                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
388                 .release_semaphore = iwlcore_eeprom_release_semaphore,
389                 .calib_version  = iwlagn_eeprom_calib_version,
390                 .query_addr = iwlagn_eeprom_query_addr,
391                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
392         },
393         .post_associate = iwl_post_associate,
394         .isr = iwl_isr_ict,
395         .config_ap = iwl_config_ap,
396         .temp_ops = {
397                 .temperature = iwlagn_temperature,
398                 .set_ct_kill = iwl6000_set_ct_threshold,
399                 .set_calib_version = iwl6000_set_calib_version,
400          },
401         .manage_ibss_station = iwlagn_manage_ibss_station,
402         .update_bcast_stations = iwl_update_bcast_stations,
403         .debugfs_ops = {
404                 .rx_stats_read = iwl_ucode_rx_stats_read,
405                 .tx_stats_read = iwl_ucode_tx_stats_read,
406                 .general_stats_read = iwl_ucode_general_stats_read,
407                 .bt_stats_read = iwl_ucode_bt_stats_read,
408                 .reply_tx_error = iwl_reply_tx_error_read,
409         },
410         .recover_from_tx_stall = iwl_bg_monitor_recover,
411         .check_plcp_health = iwl_good_plcp_health,
412         .check_ack_health = iwl_good_ack_health,
413         .txfifo_flush = iwlagn_txfifo_flush,
414         .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
415         .tt_ops = {
416                 .lower_power_detection = iwl_tt_is_low_power_state,
417                 .tt_power_mode = iwl_tt_current_power_mode,
418                 .ct_kill_check = iwl_check_for_ct_kill,
419         }
420 };
421
422 static const struct iwl_ops iwl6000_ops = {
423         .lib = &iwl6000_lib,
424         .hcmd = &iwlagn_hcmd,
425         .utils = &iwlagn_hcmd_utils,
426         .led = &iwlagn_led_ops,
427 };
428
429 static const struct iwl_ops iwl6000g2b_ops = {
430         .lib = &iwl6000g2b_lib,
431         .hcmd = &iwlagn_bt_hcmd,
432         .utils = &iwlagn_hcmd_utils,
433         .led = &iwlagn_led_ops,
434 };
435
436 struct iwl_cfg iwl6000g2a_2agn_cfg = {
437         .name = "6000 Series 2x2 AGN Gen2a",
438         .fw_name_pre = IWL6000G2A_FW_PRE,
439         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
440         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
441         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
442         .ops = &iwl6000_ops,
443         .eeprom_size = OTP_LOW_IMAGE_SIZE,
444         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
445         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
446         .num_of_queues = IWLAGN_NUM_QUEUES,
447         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
448         .mod_params = &iwlagn_mod_params,
449         .valid_tx_ant = ANT_AB,
450         .valid_rx_ant = ANT_AB,
451         .pll_cfg_val = 0,
452         .set_l0s = true,
453         .use_bsm = false,
454         .pa_type = IWL_PA_SYSTEM,
455         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
456         .shadow_ram_support = true,
457         .ht_greenfield_support = true,
458         .led_compensation = 51,
459         .use_rts_for_aggregation = true, /* use rts/cts protection */
460         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
461         .supports_idle = true,
462         .adv_thermal_throttle = true,
463         .support_ct_kill_exit = true,
464         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
465         .chain_noise_scale = 1000,
466         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
467         .max_event_log_size = 512,
468         .ucode_tracing = true,
469         .sensitivity_calib_by_driver = true,
470         .chain_noise_calib_by_driver = true,
471         .need_dc_calib = true,
472 };
473
474 struct iwl_cfg iwl6000g2a_2abg_cfg = {
475         .name = "6000 Series 2x2 ABG Gen2a",
476         .fw_name_pre = IWL6000G2A_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,
480         .ops = &iwl6000_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         .led_compensation = 51,
496         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
497         .supports_idle = true,
498         .adv_thermal_throttle = true,
499         .support_ct_kill_exit = true,
500         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
501         .chain_noise_scale = 1000,
502         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
503         .max_event_log_size = 512,
504         .sensitivity_calib_by_driver = true,
505         .chain_noise_calib_by_driver = true,
506         .need_dc_calib = true,
507 };
508
509 struct iwl_cfg iwl6000g2a_2bg_cfg = {
510         .name = "6000 Series 2x2 BG Gen2a",
511         .fw_name_pre = IWL6000G2A_FW_PRE,
512         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
513         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
514         .sku = IWL_SKU_G,
515         .ops = &iwl6000_ops,
516         .eeprom_size = OTP_LOW_IMAGE_SIZE,
517         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
518         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
519         .num_of_queues = IWLAGN_NUM_QUEUES,
520         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
521         .mod_params = &iwlagn_mod_params,
522         .valid_tx_ant = ANT_AB,
523         .valid_rx_ant = ANT_AB,
524         .pll_cfg_val = 0,
525         .set_l0s = true,
526         .use_bsm = false,
527         .pa_type = IWL_PA_SYSTEM,
528         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
529         .shadow_ram_support = true,
530         .led_compensation = 51,
531         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
532         .supports_idle = true,
533         .adv_thermal_throttle = true,
534         .support_ct_kill_exit = true,
535         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
536         .chain_noise_scale = 1000,
537         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
538         .max_event_log_size = 512,
539         .sensitivity_calib_by_driver = true,
540         .chain_noise_calib_by_driver = true,
541         .need_dc_calib = true,
542 };
543
544 struct iwl_cfg iwl6000g2b_2agn_cfg = {
545         .name = "6000 Series 2x2 AGN Gen2b",
546         .fw_name_pre = IWL6000G2B_FW_PRE,
547         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
548         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
549         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
550         .ops = &iwl6000g2b_ops,
551         .eeprom_size = OTP_LOW_IMAGE_SIZE,
552         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
553         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
554         .num_of_queues = IWLAGN_NUM_QUEUES,
555         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
556         .mod_params = &iwlagn_mod_params,
557         .valid_tx_ant = ANT_AB,
558         .valid_rx_ant = ANT_AB,
559         .pll_cfg_val = 0,
560         .set_l0s = true,
561         .use_bsm = false,
562         .pa_type = IWL_PA_SYSTEM,
563         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
564         .shadow_ram_support = true,
565         .ht_greenfield_support = true,
566         .led_compensation = 51,
567         .use_rts_for_aggregation = true, /* use rts/cts protection */
568         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
569         .supports_idle = true,
570         .adv_thermal_throttle = true,
571         .support_ct_kill_exit = true,
572         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
573         .chain_noise_scale = 1000,
574         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
575         .max_event_log_size = 512,
576         .sensitivity_calib_by_driver = true,
577         .chain_noise_calib_by_driver = true,
578         .need_dc_calib = true,
579         .bt_statistics = true,
580         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
581         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
582         .advanced_bt_coexist = true,
583         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
584         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
585 };
586
587 struct iwl_cfg iwl6000g2b_2abg_cfg = {
588         .name = "6000 Series 2x2 ABG Gen2b",
589         .fw_name_pre = IWL6000G2B_FW_PRE,
590         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
591         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
592         .sku = IWL_SKU_A|IWL_SKU_G,
593         .ops = &iwl6000g2b_ops,
594         .eeprom_size = OTP_LOW_IMAGE_SIZE,
595         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
596         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
597         .num_of_queues = IWLAGN_NUM_QUEUES,
598         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
599         .mod_params = &iwlagn_mod_params,
600         .valid_tx_ant = ANT_AB,
601         .valid_rx_ant = ANT_AB,
602         .pll_cfg_val = 0,
603         .set_l0s = true,
604         .use_bsm = false,
605         .pa_type = IWL_PA_SYSTEM,
606         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
607         .shadow_ram_support = true,
608         .led_compensation = 51,
609         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
610         .supports_idle = true,
611         .adv_thermal_throttle = true,
612         .support_ct_kill_exit = true,
613         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
614         .chain_noise_scale = 1000,
615         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
616         .max_event_log_size = 512,
617         .sensitivity_calib_by_driver = true,
618         .chain_noise_calib_by_driver = true,
619         .need_dc_calib = true,
620         .bt_statistics = true,
621         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
622         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
623         .advanced_bt_coexist = true,
624         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
625         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
626 };
627
628 struct iwl_cfg iwl6000g2b_2bgn_cfg = {
629         .name = "6000 Series 2x2 BGN Gen2b",
630         .fw_name_pre = IWL6000G2B_FW_PRE,
631         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
632         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
633         .sku = IWL_SKU_G|IWL_SKU_N,
634         .ops = &iwl6000g2b_ops,
635         .eeprom_size = OTP_LOW_IMAGE_SIZE,
636         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
637         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
638         .num_of_queues = IWLAGN_NUM_QUEUES,
639         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
640         .mod_params = &iwlagn_mod_params,
641         .valid_tx_ant = ANT_AB,
642         .valid_rx_ant = ANT_AB,
643         .pll_cfg_val = 0,
644         .set_l0s = true,
645         .use_bsm = false,
646         .pa_type = IWL_PA_SYSTEM,
647         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
648         .shadow_ram_support = true,
649         .ht_greenfield_support = true,
650         .led_compensation = 51,
651         .use_rts_for_aggregation = true, /* use rts/cts protection */
652         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
653         .supports_idle = true,
654         .adv_thermal_throttle = true,
655         .support_ct_kill_exit = true,
656         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
657         .chain_noise_scale = 1000,
658         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
659         .max_event_log_size = 512,
660         .sensitivity_calib_by_driver = true,
661         .chain_noise_calib_by_driver = true,
662         .need_dc_calib = true,
663         .bt_statistics = true,
664         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
665         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
666         .advanced_bt_coexist = true,
667         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
668         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
669 };
670
671 struct iwl_cfg iwl6000g2b_2bg_cfg = {
672         .name = "6000 Series 2x2 BG Gen2b",
673         .fw_name_pre = IWL6000G2B_FW_PRE,
674         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
675         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
676         .sku = IWL_SKU_G,
677         .ops = &iwl6000g2b_ops,
678         .eeprom_size = OTP_LOW_IMAGE_SIZE,
679         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
680         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
681         .num_of_queues = IWLAGN_NUM_QUEUES,
682         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
683         .mod_params = &iwlagn_mod_params,
684         .valid_tx_ant = ANT_AB,
685         .valid_rx_ant = ANT_AB,
686         .pll_cfg_val = 0,
687         .set_l0s = true,
688         .use_bsm = false,
689         .pa_type = IWL_PA_SYSTEM,
690         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
691         .shadow_ram_support = true,
692         .led_compensation = 51,
693         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
694         .supports_idle = true,
695         .adv_thermal_throttle = true,
696         .support_ct_kill_exit = true,
697         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
698         .chain_noise_scale = 1000,
699         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
700         .max_event_log_size = 512,
701         .sensitivity_calib_by_driver = true,
702         .chain_noise_calib_by_driver = true,
703         .need_dc_calib = true,
704         .bt_statistics = true,
705         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
706         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
707         .advanced_bt_coexist = true,
708         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
709         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
710 };
711
712 struct iwl_cfg iwl6000g2b_bgn_cfg = {
713         .name = "6000 Series 1x2 BGN Gen2b",
714         .fw_name_pre = IWL6000G2B_FW_PRE,
715         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
716         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
717         .sku = IWL_SKU_G|IWL_SKU_N,
718         .ops = &iwl6000g2b_ops,
719         .eeprom_size = OTP_LOW_IMAGE_SIZE,
720         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
721         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
722         .num_of_queues = IWLAGN_NUM_QUEUES,
723         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
724         .mod_params = &iwlagn_mod_params,
725         .valid_tx_ant = ANT_A,
726         .valid_rx_ant = ANT_AB,
727         .pll_cfg_val = 0,
728         .set_l0s = true,
729         .use_bsm = false,
730         .pa_type = IWL_PA_SYSTEM,
731         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
732         .shadow_ram_support = true,
733         .ht_greenfield_support = true,
734         .led_compensation = 51,
735         .use_rts_for_aggregation = true, /* use rts/cts protection */
736         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
737         .supports_idle = true,
738         .adv_thermal_throttle = true,
739         .support_ct_kill_exit = true,
740         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
741         .chain_noise_scale = 1000,
742         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
743         .max_event_log_size = 512,
744         .sensitivity_calib_by_driver = true,
745         .chain_noise_calib_by_driver = true,
746         .need_dc_calib = true,
747         .bt_statistics = true,
748         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
749         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
750         .advanced_bt_coexist = true,
751         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
752         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
753 };
754
755 struct iwl_cfg iwl6000g2b_bg_cfg = {
756         .name = "6000 Series 1x2 BG Gen2b",
757         .fw_name_pre = IWL6000G2B_FW_PRE,
758         .ucode_api_max = IWL6000G2_UCODE_API_MAX,
759         .ucode_api_min = IWL6000G2_UCODE_API_MIN,
760         .sku = IWL_SKU_G,
761         .ops = &iwl6000g2b_ops,
762         .eeprom_size = OTP_LOW_IMAGE_SIZE,
763         .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
764         .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
765         .num_of_queues = IWLAGN_NUM_QUEUES,
766         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
767         .mod_params = &iwlagn_mod_params,
768         .valid_tx_ant = ANT_A,
769         .valid_rx_ant = ANT_AB,
770         .pll_cfg_val = 0,
771         .set_l0s = true,
772         .use_bsm = false,
773         .pa_type = IWL_PA_SYSTEM,
774         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
775         .shadow_ram_support = true,
776         .led_compensation = 51,
777         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
778         .supports_idle = true,
779         .adv_thermal_throttle = true,
780         .support_ct_kill_exit = true,
781         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
782         .chain_noise_scale = 1000,
783         .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
784         .max_event_log_size = 512,
785         .sensitivity_calib_by_driver = true,
786         .chain_noise_calib_by_driver = true,
787         .need_dc_calib = true,
788         .bt_statistics = true,
789         /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
790         .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
791         .advanced_bt_coexist = true,
792         .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
793         .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
794 };
795
796 /*
797  * "i": Internal configuration, use internal Power Amplifier
798  */
799 struct iwl_cfg iwl6000i_2agn_cfg = {
800         .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
801         .fw_name_pre = IWL6000_FW_PRE,
802         .ucode_api_max = IWL6000_UCODE_API_MAX,
803         .ucode_api_min = IWL6000_UCODE_API_MIN,
804         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
805         .ops = &iwl6000_ops,
806         .eeprom_size = OTP_LOW_IMAGE_SIZE,
807         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
808         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
809         .num_of_queues = IWLAGN_NUM_QUEUES,
810         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
811         .mod_params = &iwlagn_mod_params,
812         .valid_tx_ant = ANT_BC,
813         .valid_rx_ant = ANT_BC,
814         .pll_cfg_val = 0,
815         .set_l0s = true,
816         .use_bsm = false,
817         .pa_type = IWL_PA_INTERNAL,
818         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
819         .shadow_ram_support = true,
820         .ht_greenfield_support = true,
821         .led_compensation = 51,
822         .use_rts_for_aggregation = true, /* use rts/cts protection */
823         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
824         .supports_idle = true,
825         .adv_thermal_throttle = true,
826         .support_ct_kill_exit = true,
827         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
828         .chain_noise_scale = 1000,
829         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
830         .max_event_log_size = 1024,
831         .ucode_tracing = true,
832         .sensitivity_calib_by_driver = true,
833         .chain_noise_calib_by_driver = true,
834 };
835
836 struct iwl_cfg iwl6000i_2abg_cfg = {
837         .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
838         .fw_name_pre = IWL6000_FW_PRE,
839         .ucode_api_max = IWL6000_UCODE_API_MAX,
840         .ucode_api_min = IWL6000_UCODE_API_MIN,
841         .sku = IWL_SKU_A|IWL_SKU_G,
842         .ops = &iwl6000_ops,
843         .eeprom_size = OTP_LOW_IMAGE_SIZE,
844         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
845         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
846         .num_of_queues = IWLAGN_NUM_QUEUES,
847         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
848         .mod_params = &iwlagn_mod_params,
849         .valid_tx_ant = ANT_BC,
850         .valid_rx_ant = ANT_BC,
851         .pll_cfg_val = 0,
852         .set_l0s = true,
853         .use_bsm = false,
854         .pa_type = IWL_PA_INTERNAL,
855         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
856         .shadow_ram_support = true,
857         .led_compensation = 51,
858         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
859         .supports_idle = true,
860         .adv_thermal_throttle = true,
861         .support_ct_kill_exit = true,
862         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
863         .chain_noise_scale = 1000,
864         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
865         .max_event_log_size = 1024,
866         .ucode_tracing = true,
867         .sensitivity_calib_by_driver = true,
868         .chain_noise_calib_by_driver = true,
869 };
870
871 struct iwl_cfg iwl6000i_2bg_cfg = {
872         .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
873         .fw_name_pre = IWL6000_FW_PRE,
874         .ucode_api_max = IWL6000_UCODE_API_MAX,
875         .ucode_api_min = IWL6000_UCODE_API_MIN,
876         .sku = IWL_SKU_G,
877         .ops = &iwl6000_ops,
878         .eeprom_size = OTP_LOW_IMAGE_SIZE,
879         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
880         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
881         .num_of_queues = IWLAGN_NUM_QUEUES,
882         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
883         .mod_params = &iwlagn_mod_params,
884         .valid_tx_ant = ANT_BC,
885         .valid_rx_ant = ANT_BC,
886         .pll_cfg_val = 0,
887         .set_l0s = true,
888         .use_bsm = false,
889         .pa_type = IWL_PA_INTERNAL,
890         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
891         .shadow_ram_support = true,
892         .led_compensation = 51,
893         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
894         .supports_idle = true,
895         .adv_thermal_throttle = true,
896         .support_ct_kill_exit = true,
897         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
898         .chain_noise_scale = 1000,
899         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
900         .max_event_log_size = 1024,
901         .ucode_tracing = true,
902         .sensitivity_calib_by_driver = true,
903         .chain_noise_calib_by_driver = true,
904 };
905
906 struct iwl_cfg iwl6050_2agn_cfg = {
907         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
908         .fw_name_pre = IWL6050_FW_PRE,
909         .ucode_api_max = IWL6050_UCODE_API_MAX,
910         .ucode_api_min = IWL6050_UCODE_API_MIN,
911         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
912         .ops = &iwl6000_ops,
913         .eeprom_size = OTP_LOW_IMAGE_SIZE,
914         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
915         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
916         .num_of_queues = IWLAGN_NUM_QUEUES,
917         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
918         .mod_params = &iwlagn_mod_params,
919         .valid_tx_ant = ANT_AB,
920         .valid_rx_ant = ANT_AB,
921         .pll_cfg_val = 0,
922         .set_l0s = true,
923         .use_bsm = false,
924         .pa_type = IWL_PA_SYSTEM,
925         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
926         .shadow_ram_support = true,
927         .ht_greenfield_support = true,
928         .led_compensation = 51,
929         .use_rts_for_aggregation = true, /* use rts/cts protection */
930         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
931         .supports_idle = true,
932         .adv_thermal_throttle = true,
933         .support_ct_kill_exit = true,
934         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
935         .chain_noise_scale = 1500,
936         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
937         .max_event_log_size = 1024,
938         .ucode_tracing = true,
939         .sensitivity_calib_by_driver = true,
940         .chain_noise_calib_by_driver = true,
941         .need_dc_calib = true,
942 };
943
944 struct iwl_cfg iwl6050g2_bgn_cfg = {
945         .name = "6050 Series 1x2 BGN Gen2",
946         .fw_name_pre = IWL6050_FW_PRE,
947         .ucode_api_max = IWL6050_UCODE_API_MAX,
948         .ucode_api_min = IWL6050_UCODE_API_MIN,
949         .sku = IWL_SKU_G|IWL_SKU_N,
950         .ops = &iwl6000_ops,
951         .eeprom_size = OTP_LOW_IMAGE_SIZE,
952         .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
953         .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
954         .num_of_queues = IWLAGN_NUM_QUEUES,
955         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
956         .mod_params = &iwlagn_mod_params,
957         .valid_tx_ant = ANT_A,
958         .valid_rx_ant = ANT_AB,
959         .pll_cfg_val = 0,
960         .set_l0s = true,
961         .use_bsm = false,
962         .pa_type = IWL_PA_SYSTEM,
963         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
964         .shadow_ram_support = true,
965         .ht_greenfield_support = true,
966         .led_compensation = 51,
967         .use_rts_for_aggregation = true, /* use rts/cts protection */
968         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
969         .supports_idle = true,
970         .adv_thermal_throttle = true,
971         .support_ct_kill_exit = true,
972         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
973         .chain_noise_scale = 1500,
974         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
975         .max_event_log_size = 1024,
976         .ucode_tracing = true,
977         .sensitivity_calib_by_driver = true,
978         .chain_noise_calib_by_driver = true,
979         .need_dc_calib = true,
980 };
981
982 struct iwl_cfg iwl6050_2abg_cfg = {
983         .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
984         .fw_name_pre = IWL6050_FW_PRE,
985         .ucode_api_max = IWL6050_UCODE_API_MAX,
986         .ucode_api_min = IWL6050_UCODE_API_MIN,
987         .sku = IWL_SKU_A|IWL_SKU_G,
988         .ops = &iwl6000_ops,
989         .eeprom_size = OTP_LOW_IMAGE_SIZE,
990         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
991         .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
992         .num_of_queues = IWLAGN_NUM_QUEUES,
993         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
994         .mod_params = &iwlagn_mod_params,
995         .valid_tx_ant = ANT_AB,
996         .valid_rx_ant = ANT_AB,
997         .pll_cfg_val = 0,
998         .set_l0s = true,
999         .use_bsm = false,
1000         .pa_type = IWL_PA_SYSTEM,
1001         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
1002         .shadow_ram_support = true,
1003         .led_compensation = 51,
1004         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1005         .supports_idle = true,
1006         .adv_thermal_throttle = true,
1007         .support_ct_kill_exit = true,
1008         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1009         .chain_noise_scale = 1500,
1010         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1011         .max_event_log_size = 1024,
1012         .ucode_tracing = true,
1013         .sensitivity_calib_by_driver = true,
1014         .chain_noise_calib_by_driver = true,
1015         .need_dc_calib = true,
1016 };
1017
1018 struct iwl_cfg iwl6000_3agn_cfg = {
1019         .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
1020         .fw_name_pre = IWL6000_FW_PRE,
1021         .ucode_api_max = IWL6000_UCODE_API_MAX,
1022         .ucode_api_min = IWL6000_UCODE_API_MIN,
1023         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
1024         .ops = &iwl6000_ops,
1025         .eeprom_size = OTP_LOW_IMAGE_SIZE,
1026         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
1027         .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
1028         .num_of_queues = IWLAGN_NUM_QUEUES,
1029         .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1030         .mod_params = &iwlagn_mod_params,
1031         .valid_tx_ant = ANT_ABC,
1032         .valid_rx_ant = ANT_ABC,
1033         .pll_cfg_val = 0,
1034         .set_l0s = true,
1035         .use_bsm = false,
1036         .pa_type = IWL_PA_SYSTEM,
1037         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1038         .shadow_ram_support = true,
1039         .ht_greenfield_support = true,
1040         .led_compensation = 51,
1041         .use_rts_for_aggregation = true, /* use rts/cts protection */
1042         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1043         .supports_idle = true,
1044         .adv_thermal_throttle = true,
1045         .support_ct_kill_exit = true,
1046         .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1047         .chain_noise_scale = 1000,
1048         .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1049         .max_event_log_size = 1024,
1050         .ucode_tracing = true,
1051         .sensitivity_calib_by_driver = true,
1052         .chain_noise_calib_by_driver = true,
1053 };
1054
1055 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1056 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
1057 MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1058 MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));