iwlwifi: issue ct_kill host command based on device config
[safe/jmp/linux-2.6] / drivers / net / wireless / iwlwifi / iwl-6000.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2008-2009 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-helpers.h"
46 #include "iwl-5000-hw.h"
47 #include "iwl-6000-hw.h"
48 #include "iwl-agn-led.h"
49
50 /* Highest firmware API version supported */
51 #define IWL6000_UCODE_API_MAX 4
52 #define IWL6050_UCODE_API_MAX 4
53
54 /* Lowest firmware API version supported */
55 #define IWL6000_UCODE_API_MIN 1
56 #define IWL6050_UCODE_API_MIN 1
57
58 #define IWL6000_FW_PRE "iwlwifi-6000-"
59 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
60 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
61
62 #define IWL6050_FW_PRE "iwlwifi-6050-"
63 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
64 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
65
66 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
67 {
68         /* want Celsius */
69         priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70         priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
71 }
72
73 /* NIC configuration for 6000 series */
74 static void iwl6000_nic_config(struct iwl_priv *priv)
75 {
76         u16 radio_cfg;
77
78         radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
79
80         /* write radio config values to register */
81         if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
82                 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
83                             EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
84                             EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
85                             EEPROM_RF_CFG_DASH_MSK(radio_cfg));
86
87         /* set CSR_HW_CONFIG_REG for uCode use */
88         iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
89                     CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
90                     CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
91
92         /* no locking required for register write */
93         if (priv->cfg->pa_type == IWL_PA_HYBRID) {
94                 /* 2x2 hybrid phy type */
95                 iwl_write32(priv, CSR_GP_DRIVER_REG,
96                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
97         } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
98                 /* 2x2 IPA phy type */
99                 iwl_write32(priv, CSR_GP_DRIVER_REG,
100                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
101         }
102         /* else do nothing, uCode configured */
103 }
104
105 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
106         .min_nrg_cck = 97,
107         .max_nrg_cck = 0, /* not used, set to 0 */
108         .auto_corr_min_ofdm = 80,
109         .auto_corr_min_ofdm_mrc = 128,
110         .auto_corr_min_ofdm_x1 = 105,
111         .auto_corr_min_ofdm_mrc_x1 = 192,
112
113         .auto_corr_max_ofdm = 145,
114         .auto_corr_max_ofdm_mrc = 232,
115         .auto_corr_max_ofdm_x1 = 145,
116         .auto_corr_max_ofdm_mrc_x1 = 232,
117
118         .auto_corr_min_cck = 125,
119         .auto_corr_max_cck = 175,
120         .auto_corr_min_cck_mrc = 160,
121         .auto_corr_max_cck_mrc = 310,
122         .nrg_th_cck = 97,
123         .nrg_th_ofdm = 100,
124
125         .barker_corr_th_min = 190,
126         .barker_corr_th_min_mrc = 390,
127         .nrg_th_cca = 62,
128 };
129
130 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
131 {
132         if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
133             priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
134                 priv->cfg->num_of_queues =
135                         priv->cfg->mod_params->num_of_queues;
136
137         priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
138         priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
139         priv->hw_params.scd_bc_tbls_size =
140                         priv->cfg->num_of_queues *
141                         sizeof(struct iwl5000_scd_bc_tbl);
142         priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
143         priv->hw_params.max_stations = IWL5000_STATION_COUNT;
144         priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
145
146         priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
147         priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
148
149         priv->hw_params.max_bsm_size = 0;
150         priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) |
151                                         BIT(IEEE80211_BAND_5GHZ);
152         priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
153
154         priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
155         priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
156         priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
157         priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
158
159         if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
160                 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
161
162         /* Set initial sensitivity parameters */
163         /* Set initial calibration set */
164         priv->hw_params.sens = &iwl6000_sensitivity;
165         priv->hw_params.calib_init_cfg =
166                         BIT(IWL_CALIB_XTAL)             |
167                         BIT(IWL_CALIB_LO)               |
168                         BIT(IWL_CALIB_TX_IQ)            |
169                         BIT(IWL_CALIB_TX_IQ_PERD)       |
170                         BIT(IWL_CALIB_BASE_BAND);
171
172         return 0;
173 }
174
175 static struct iwl_lib_ops iwl6000_lib = {
176         .set_hw_params = iwl6000_hw_set_hw_params,
177         .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
178         .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
179         .txq_set_sched = iwl5000_txq_set_sched,
180         .txq_agg_enable = iwl5000_txq_agg_enable,
181         .txq_agg_disable = iwl5000_txq_agg_disable,
182         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
183         .txq_free_tfd = iwl_hw_txq_free_tfd,
184         .txq_init = iwl_hw_tx_queue_init,
185         .rx_handler_setup = iwl5000_rx_handler_setup,
186         .setup_deferred_work = iwl5000_setup_deferred_work,
187         .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
188         .load_ucode = iwl5000_load_ucode,
189         .dump_nic_event_log = iwl_dump_nic_event_log,
190         .dump_nic_error_log = iwl_dump_nic_error_log,
191         .init_alive_start = iwl5000_init_alive_start,
192         .alive_notify = iwl5000_alive_notify,
193         .send_tx_power = iwl5000_send_tx_power,
194         .update_chain_flags = iwl_update_chain_flags,
195         .apm_ops = {
196                 .init = iwl_apm_init,
197                 .stop = iwl_apm_stop,
198                 .config = iwl6000_nic_config,
199                 .set_pwr_src = iwl_set_pwr_src,
200         },
201         .eeprom_ops = {
202                 .regulatory_bands = {
203                         EEPROM_5000_REG_BAND_1_CHANNELS,
204                         EEPROM_5000_REG_BAND_2_CHANNELS,
205                         EEPROM_5000_REG_BAND_3_CHANNELS,
206                         EEPROM_5000_REG_BAND_4_CHANNELS,
207                         EEPROM_5000_REG_BAND_5_CHANNELS,
208                         EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
209                         EEPROM_5000_REG_BAND_52_HT40_CHANNELS
210                 },
211                 .verify_signature  = iwlcore_eeprom_verify_signature,
212                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
213                 .release_semaphore = iwlcore_eeprom_release_semaphore,
214                 .calib_version  = iwl5000_eeprom_calib_version,
215                 .query_addr = iwl5000_eeprom_query_addr,
216                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
217         },
218         .post_associate = iwl_post_associate,
219         .isr = iwl_isr_ict,
220         .config_ap = iwl_config_ap,
221         .temp_ops = {
222                 .temperature = iwl5000_temperature,
223                 .set_ct_kill = iwl6000_set_ct_threshold,
224          },
225 };
226
227 static struct iwl_ops iwl6000_ops = {
228         .ucode = &iwl5000_ucode,
229         .lib = &iwl6000_lib,
230         .hcmd = &iwl5000_hcmd,
231         .utils = &iwl5000_hcmd_utils,
232         .led = &iwlagn_led_ops,
233 };
234
235 static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
236         .get_hcmd_size = iwl5000_get_hcmd_size,
237         .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
238         .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
239         .calc_rssi = iwl5000_calc_rssi,
240 };
241
242 static struct iwl_ops iwl6050_ops = {
243         .ucode = &iwl5000_ucode,
244         .lib = &iwl6000_lib,
245         .hcmd = &iwl5000_hcmd,
246         .utils = &iwl6050_hcmd_utils,
247         .led = &iwlagn_led_ops,
248 };
249
250
251 /*
252  * "h": Hybrid configuration, use both internal and external Power Amplifier
253  */
254 struct iwl_cfg iwl6000h_2agn_cfg = {
255         .name = "6000 Series 2x2 AGN",
256         .fw_name_pre = IWL6000_FW_PRE,
257         .ucode_api_max = IWL6000_UCODE_API_MAX,
258         .ucode_api_min = IWL6000_UCODE_API_MIN,
259         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
260         .ops = &iwl6000_ops,
261         .eeprom_size = OTP_LOW_IMAGE_SIZE,
262         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
263         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
264         .num_of_queues = IWL50_NUM_QUEUES,
265         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
266         .mod_params = &iwl50_mod_params,
267         .valid_tx_ant = ANT_AB,
268         .valid_rx_ant = ANT_AB,
269         .pll_cfg_val = 0,
270         .set_l0s = false,
271         .use_bsm = false,
272         .pa_type = IWL_PA_HYBRID,
273         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
274         .shadow_ram_support = true,
275         .ht_greenfield_support = true,
276         .led_compensation = 51,
277         .use_rts_for_ht = true, /* use rts/cts protection */
278         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
279         .supports_idle = true,
280         .adv_thermal_throttle = true,
281         .support_ct_kill_exit = true,
282 };
283
284 struct iwl_cfg iwl6000h_2abg_cfg = {
285         .name = "6000 Series 2x2 ABG",
286         .fw_name_pre = IWL6000_FW_PRE,
287         .ucode_api_max = IWL6000_UCODE_API_MAX,
288         .ucode_api_min = IWL6000_UCODE_API_MIN,
289         .sku = IWL_SKU_A|IWL_SKU_G,
290         .ops = &iwl6000_ops,
291         .eeprom_size = OTP_LOW_IMAGE_SIZE,
292         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
293         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
294         .num_of_queues = IWL50_NUM_QUEUES,
295         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
296         .mod_params = &iwl50_mod_params,
297         .valid_tx_ant = ANT_AB,
298         .valid_rx_ant = ANT_AB,
299         .pll_cfg_val = 0,
300         .set_l0s = false,
301         .use_bsm = false,
302         .pa_type = IWL_PA_HYBRID,
303         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
304         .shadow_ram_support = true,
305         .ht_greenfield_support = true,
306         .led_compensation = 51,
307         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
308         .supports_idle = true,
309         .adv_thermal_throttle = true,
310         .support_ct_kill_exit = true,
311 };
312
313 struct iwl_cfg iwl6000h_2bg_cfg = {
314         .name = "6000 Series 2x2 BG",
315         .fw_name_pre = IWL6000_FW_PRE,
316         .ucode_api_max = IWL6000_UCODE_API_MAX,
317         .ucode_api_min = IWL6000_UCODE_API_MIN,
318         .sku = IWL_SKU_G,
319         .ops = &iwl6000_ops,
320         .eeprom_size = OTP_LOW_IMAGE_SIZE,
321         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
322         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
323         .num_of_queues = IWL50_NUM_QUEUES,
324         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
325         .mod_params = &iwl50_mod_params,
326         .valid_tx_ant = ANT_AB,
327         .valid_rx_ant = ANT_AB,
328         .pll_cfg_val = 0,
329         .set_l0s = false,
330         .use_bsm = false,
331         .pa_type = IWL_PA_HYBRID,
332         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
333         .shadow_ram_support = true,
334         .ht_greenfield_support = true,
335         .led_compensation = 51,
336         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
337         .supports_idle = true,
338         .adv_thermal_throttle = true,
339         .support_ct_kill_exit = true,
340 };
341
342 /*
343  * "i": Internal configuration, use internal Power Amplifier
344  */
345 struct iwl_cfg iwl6000i_2agn_cfg = {
346         .name = "6000 Series 2x2 AGN",
347         .fw_name_pre = IWL6000_FW_PRE,
348         .ucode_api_max = IWL6000_UCODE_API_MAX,
349         .ucode_api_min = IWL6000_UCODE_API_MIN,
350         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
351         .ops = &iwl6000_ops,
352         .eeprom_size = OTP_LOW_IMAGE_SIZE,
353         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
354         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
355         .num_of_queues = IWL50_NUM_QUEUES,
356         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
357         .mod_params = &iwl50_mod_params,
358         .valid_tx_ant = ANT_BC,
359         .valid_rx_ant = ANT_BC,
360         .pll_cfg_val = 0,
361         .set_l0s = false,
362         .use_bsm = false,
363         .pa_type = IWL_PA_INTERNAL,
364         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
365         .shadow_ram_support = true,
366         .ht_greenfield_support = true,
367         .led_compensation = 51,
368         .use_rts_for_ht = true, /* use rts/cts protection */
369         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
370         .supports_idle = true,
371         .adv_thermal_throttle = true,
372         .support_ct_kill_exit = true,
373 };
374
375 struct iwl_cfg iwl6000i_2abg_cfg = {
376         .name = "6000 Series 2x2 ABG",
377         .fw_name_pre = IWL6000_FW_PRE,
378         .ucode_api_max = IWL6000_UCODE_API_MAX,
379         .ucode_api_min = IWL6000_UCODE_API_MIN,
380         .sku = IWL_SKU_A|IWL_SKU_G,
381         .ops = &iwl6000_ops,
382         .eeprom_size = OTP_LOW_IMAGE_SIZE,
383         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
384         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
385         .num_of_queues = IWL50_NUM_QUEUES,
386         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
387         .mod_params = &iwl50_mod_params,
388         .valid_tx_ant = ANT_BC,
389         .valid_rx_ant = ANT_BC,
390         .pll_cfg_val = 0,
391         .set_l0s = false,
392         .use_bsm = false,
393         .pa_type = IWL_PA_INTERNAL,
394         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
395         .shadow_ram_support = true,
396         .ht_greenfield_support = true,
397         .led_compensation = 51,
398         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
399         .supports_idle = true,
400         .adv_thermal_throttle = true,
401         .support_ct_kill_exit = true,
402 };
403
404 struct iwl_cfg iwl6000i_2bg_cfg = {
405         .name = "6000 Series 2x2 BG",
406         .fw_name_pre = IWL6000_FW_PRE,
407         .ucode_api_max = IWL6000_UCODE_API_MAX,
408         .ucode_api_min = IWL6000_UCODE_API_MIN,
409         .sku = IWL_SKU_G,
410         .ops = &iwl6000_ops,
411         .eeprom_size = OTP_LOW_IMAGE_SIZE,
412         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
413         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
414         .num_of_queues = IWL50_NUM_QUEUES,
415         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
416         .mod_params = &iwl50_mod_params,
417         .valid_tx_ant = ANT_BC,
418         .valid_rx_ant = ANT_BC,
419         .pll_cfg_val = 0,
420         .set_l0s = false,
421         .use_bsm = false,
422         .pa_type = IWL_PA_INTERNAL,
423         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
424         .shadow_ram_support = true,
425         .ht_greenfield_support = true,
426         .led_compensation = 51,
427         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
428         .supports_idle = true,
429         .adv_thermal_throttle = true,
430         .support_ct_kill_exit = true,
431 };
432
433 struct iwl_cfg iwl6050_2agn_cfg = {
434         .name = "6050 Series 2x2 AGN",
435         .fw_name_pre = IWL6050_FW_PRE,
436         .ucode_api_max = IWL6050_UCODE_API_MAX,
437         .ucode_api_min = IWL6050_UCODE_API_MIN,
438         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
439         .ops = &iwl6050_ops,
440         .eeprom_size = OTP_LOW_IMAGE_SIZE,
441         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
442         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
443         .num_of_queues = IWL50_NUM_QUEUES,
444         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
445         .mod_params = &iwl50_mod_params,
446         .valid_tx_ant = ANT_AB,
447         .valid_rx_ant = ANT_AB,
448         .pll_cfg_val = 0,
449         .set_l0s = false,
450         .use_bsm = false,
451         .pa_type = IWL_PA_SYSTEM,
452         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
453         .shadow_ram_support = true,
454         .ht_greenfield_support = true,
455         .led_compensation = 51,
456         .use_rts_for_ht = true, /* use rts/cts protection */
457         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
458         .supports_idle = true,
459         .adv_thermal_throttle = true,
460         .support_ct_kill_exit = true,
461 };
462
463 struct iwl_cfg iwl6050_2abg_cfg = {
464         .name = "6050 Series 2x2 ABG",
465         .fw_name_pre = IWL6050_FW_PRE,
466         .ucode_api_max = IWL6050_UCODE_API_MAX,
467         .ucode_api_min = IWL6050_UCODE_API_MIN,
468         .sku = IWL_SKU_A|IWL_SKU_G,
469         .ops = &iwl6050_ops,
470         .eeprom_size = OTP_LOW_IMAGE_SIZE,
471         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
472         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
473         .num_of_queues = IWL50_NUM_QUEUES,
474         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
475         .mod_params = &iwl50_mod_params,
476         .valid_tx_ant = ANT_AB,
477         .valid_rx_ant = ANT_AB,
478         .pll_cfg_val = 0,
479         .set_l0s = false,
480         .use_bsm = false,
481         .pa_type = IWL_PA_SYSTEM,
482         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
483         .shadow_ram_support = true,
484         .ht_greenfield_support = true,
485         .led_compensation = 51,
486         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
487         .supports_idle = true,
488         .adv_thermal_throttle = true,
489         .support_ct_kill_exit = true,
490 };
491
492 struct iwl_cfg iwl6000_3agn_cfg = {
493         .name = "6000 Series 3x3 AGN",
494         .fw_name_pre = IWL6000_FW_PRE,
495         .ucode_api_max = IWL6000_UCODE_API_MAX,
496         .ucode_api_min = IWL6000_UCODE_API_MIN,
497         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
498         .ops = &iwl6000_ops,
499         .eeprom_size = OTP_LOW_IMAGE_SIZE,
500         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
501         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
502         .num_of_queues = IWL50_NUM_QUEUES,
503         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
504         .mod_params = &iwl50_mod_params,
505         .valid_tx_ant = ANT_ABC,
506         .valid_rx_ant = ANT_ABC,
507         .pll_cfg_val = 0,
508         .set_l0s = false,
509         .use_bsm = false,
510         .pa_type = IWL_PA_SYSTEM,
511         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
512         .shadow_ram_support = true,
513         .ht_greenfield_support = true,
514         .led_compensation = 51,
515         .use_rts_for_ht = true, /* use rts/cts protection */
516         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
517         .supports_idle = true,
518         .adv_thermal_throttle = true,
519         .support_ct_kill_exit = true,
520 };
521
522 struct iwl_cfg iwl6050_3agn_cfg = {
523         .name = "6050 Series 3x3 AGN",
524         .fw_name_pre = IWL6050_FW_PRE,
525         .ucode_api_max = IWL6050_UCODE_API_MAX,
526         .ucode_api_min = IWL6050_UCODE_API_MIN,
527         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
528         .ops = &iwl6050_ops,
529         .eeprom_size = OTP_LOW_IMAGE_SIZE,
530         .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
531         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
532         .num_of_queues = IWL50_NUM_QUEUES,
533         .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
534         .mod_params = &iwl50_mod_params,
535         .valid_tx_ant = ANT_ABC,
536         .valid_rx_ant = ANT_ABC,
537         .pll_cfg_val = 0,
538         .set_l0s = false,
539         .use_bsm = false,
540         .pa_type = IWL_PA_SYSTEM,
541         .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
542         .shadow_ram_support = true,
543         .ht_greenfield_support = true,
544         .led_compensation = 51,
545         .use_rts_for_ht = true, /* use rts/cts protection */
546         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
547         .supports_idle = true,
548         .adv_thermal_throttle = true,
549         .support_ct_kill_exit = true,
550 };
551
552 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
553 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));