]> bbs.cooldavid.org Git - net-next-2.6.git/blame - drivers/net/wireless/iwlwifi/iwl-6000.c
Merge branch 'fix/asoc' into for-linus
[net-next-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
CommitLineData
e1228374
JS
1/******************************************************************************
2 *
1f447808 3 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
e1228374
JS
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"
a1175124 45#include "iwl-agn.h"
e1228374 46#include "iwl-helpers.h"
19e6cda0 47#include "iwl-agn-hw.h"
f3a2a424 48#include "iwl-6000-hw.h"
e932a609 49#include "iwl-agn-led.h"
b8c76267 50#include "iwl-agn-debugfs.h"
e1228374
JS
51
52/* Highest firmware API version supported */
fcbaf8b0
WYG
53#define IWL6000_UCODE_API_MAX 4
54#define IWL6050_UCODE_API_MAX 4
4b3e8062 55#define IWL6000G2_UCODE_API_MAX 4
e1228374
JS
56
57/* Lowest firmware API version supported */
44246421
WYG
58#define IWL6000_UCODE_API_MIN 4
59#define IWL6050_UCODE_API_MIN 4
4b3e8062 60#define IWL6000G2_UCODE_API_MIN 4
e1228374
JS
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
95b13014
SZ
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
1808972f
SZ
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
4b3e8062 78
672639de
WYG
79static 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
d5755939 86/* Indicate calibration version to uCode. */
178d1596 87static void iwl6000_set_calib_version(struct iwl_priv *priv)
d5755939 88{
178d1596
WYG
89 if (priv->cfg->need_dc_calib &&
90 (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6))
d5755939
AK
91 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
92 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
93}
94
65b7998a
WYG
95/* NIC configuration for 6000 series */
96static void iwl6000_nic_config(struct iwl_priv *priv)
97{
9371d4ed
WYG
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);
65b7998a
WYG
113
114 /* no locking required for register write */
740e7f51 115 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
65b7998a
WYG
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 */
d5755939
AK
121 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
122 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
65b7998a
WYG
123}
124
f3a2a424
WYG
125static 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,
2494f63c 135 .auto_corr_max_ofdm_x1 = 110,
f3a2a424
WYG
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,
55036d66
WYG
144
145 .barker_corr_th_min = 190,
146 .barker_corr_th_min_mrc = 390,
147 .nrg_th_cca = 62,
f3a2a424
WYG
148};
149
150static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
151{
88804e2b 152 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
19e6cda0 153 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
88804e2b
WYG
154 priv->cfg->num_of_queues =
155 priv->cfg->mod_params->num_of_queues;
f3a2a424 156
88804e2b 157 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
f3a2a424
WYG
158 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
159 priv->hw_params.scd_bc_tbls_size =
88804e2b 160 priv->cfg->num_of_queues *
19e6cda0 161 sizeof(struct iwlagn_scd_bc_tbl);
f3a2a424 162 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
bf3c7fdd
WYG
163 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
164 priv->hw_params.bcast_sta_id = IWLAGN_BROADCAST_ID;
f3a2a424
WYG
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;
e517736a
WYG
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);
178d1596
WYG
190 if (priv->cfg->need_dc_calib)
191 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
07f33f92 192
a0ee74cf
WYG
193 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
194
f3a2a424
WYG
195 return 0;
196}
197
79d07325
WYG
198static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
199 struct ieee80211_channel_switch *ch_switch)
4a56e965
WYG
200{
201 struct iwl6000_channel_switch_cmd cmd;
202 const struct iwl_channel_info *ch_info;
79d07325
WYG
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;
4a56e965
WYG
209 struct iwl_host_cmd hcmd = {
210 .id = REPLY_CHANNEL_SWITCH,
211 .len = sizeof(cmd),
3839f7ce 212 .flags = CMD_SYNC,
4a56e965
WYG
213 .data = &cmd,
214 };
215
4a56e965 216 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
79d07325
WYG
217 ch = ieee80211_frequency_to_channel(ch_switch->channel->center_freq);
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);
0924e519
WYG
221 cmd.rxon_flags = priv->staging_rxon.flags;
222 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
79d07325
WYG
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);
4a56e965
WYG
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",
79d07325 257 priv->active_rxon.channel, ch);
4a56e965
WYG
258 return -EFAULT;
259 }
79d07325 260 priv->switch_rxon.channel = cmd.channel;
0924e519 261 priv->switch_rxon.switch_in_progress = true;
4a56e965
WYG
262
263 return iwl_send_cmd_sync(priv, &hcmd);
264}
265
672639de 266static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 267 .set_hw_params = iwl6000_hw_set_hw_params,
b305a080
WYG
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,
672639de
WYG
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,
e04ed0a5
WYG
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,
81b8176e 279 .load_ucode = iwlagn_load_ucode,
b7a79404
RC
280 .dump_nic_event_log = iwl_dump_nic_event_log,
281 .dump_nic_error_log = iwl_dump_nic_error_log,
696bdee3 282 .dump_csr = iwl_dump_csr,
1b3eb823 283 .dump_fh = iwl_dump_fh,
741a6266
WYG
284 .init_alive_start = iwlagn_init_alive_start,
285 .alive_notify = iwlagn_alive_notify,
e04ed0a5 286 .send_tx_power = iwlagn_send_tx_power,
672639de 287 .update_chain_flags = iwl_update_chain_flags,
4a56e965 288 .set_channel_switch = iwl6000_hw_channel_switch,
672639de 289 .apm_ops = {
fadb3582 290 .init = iwl_apm_init,
d68b603c 291 .stop = iwl_apm_stop,
65b7998a 292 .config = iwl6000_nic_config,
672639de
WYG
293 .set_pwr_src = iwl_set_pwr_src,
294 },
295 .eeprom_ops = {
296 .regulatory_bands = {
e04ed0a5
WYG
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,
f2fa1b01 302 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
e04ed0a5 303 EEPROM_REG_BAND_52_HT40_CHANNELS
672639de
WYG
304 },
305 .verify_signature = iwlcore_eeprom_verify_signature,
306 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
307 .release_semaphore = iwlcore_eeprom_release_semaphore,
e04ed0a5
WYG
308 .calib_version = iwlagn_eeprom_calib_version,
309 .query_addr = iwlagn_eeprom_query_addr,
ab9fd1bf 310 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
311 },
312 .post_associate = iwl_post_associate,
313 .isr = iwl_isr_ict,
314 .config_ap = iwl_config_ap,
315 .temp_ops = {
e04ed0a5 316 .temperature = iwlagn_temperature,
672639de 317 .set_ct_kill = iwl6000_set_ct_threshold,
178d1596 318 .set_calib_version = iwl6000_set_calib_version,
672639de 319 },
1fa61b2e 320 .manage_ibss_station = iwlagn_manage_ibss_station,
278c2f6f 321 .update_bcast_station = iwl_update_bcast_station,
b8c76267
AK
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,
ffb7d896 326 .bt_stats_read = iwl_ucode_bt_stats_read,
b8c76267 327 },
b74e31a9 328 .recover_from_tx_stall = iwl_bg_monitor_recover,
fa8f130c
WYG
329 .check_plcp_health = iwl_good_plcp_health,
330 .check_ack_health = iwl_good_ack_health,
716c74b0 331 .txfifo_flush = iwlagn_txfifo_flush,
65550636 332 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
672639de
WYG
333};
334
45d5d805 335static const struct iwl_ops iwl6000_ops = {
672639de 336 .lib = &iwl6000_lib,
7dc77dba
WYG
337 .hcmd = &iwlagn_hcmd,
338 .utils = &iwlagn_hcmd_utils,
e932a609 339 .led = &iwlagn_led_ops,
29f35c14
JS
340};
341
1808972f
SZ
342static void do_not_send_bt_config(struct iwl_priv *priv)
343{
344}
345
346static struct iwl_hcmd_ops iwl6000g2b_hcmd = {
347 .rxon_assoc = iwlagn_send_rxon_assoc,
348 .commit_rxon = iwl_commit_rxon,
349 .set_rxon_chain = iwl_set_rxon_chain,
350 .set_tx_ant = iwlagn_send_tx_ant_config,
351 .send_bt_config = do_not_send_bt_config,
352};
353
354static const struct iwl_ops iwl6000g2b_ops = {
355 .lib = &iwl6000_lib,
356 .hcmd = &iwl6000g2b_hcmd,
357 .utils = &iwlagn_hcmd_utils,
358 .led = &iwlagn_led_ops,
359};
360
95b13014
SZ
361struct iwl_cfg iwl6000g2a_2agn_cfg = {
362 .name = "6000 Series 2x2 AGN Gen2a",
363 .fw_name_pre = IWL6000G2A_FW_PRE,
4b3e8062
SZ
364 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
365 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
0b5af201
JS
366 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
367 .ops = &iwl6000_ops,
368 .eeprom_size = OTP_LOW_IMAGE_SIZE,
4b3e8062
SZ
369 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
370 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
0b5af201
JS
371 .num_of_queues = IWLAGN_NUM_QUEUES,
372 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
373 .mod_params = &iwlagn_mod_params,
374 .valid_tx_ant = ANT_AB,
375 .valid_rx_ant = ANT_AB,
376 .pll_cfg_val = 0,
377 .set_l0s = true,
378 .use_bsm = false,
33e6f816 379 .pa_type = IWL_PA_SYSTEM,
0b5af201
JS
380 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
381 .shadow_ram_support = true,
382 .ht_greenfield_support = true,
383 .led_compensation = 51,
94597ab2 384 .use_rts_for_aggregation = true, /* use rts/cts protection */
0b5af201
JS
385 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
386 .supports_idle = true,
387 .adv_thermal_throttle = true,
388 .support_ct_kill_exit = true,
389 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
390 .chain_noise_scale = 1000,
ce60659a 391 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
95b13014 392 .max_event_log_size = 512,
6e5c800e 393 .ucode_tracing = true,
65d1f896
WYG
394 .sensitivity_calib_by_driver = true,
395 .chain_noise_calib_by_driver = true,
178d1596 396 .need_dc_calib = true,
0b5af201
JS
397};
398
1808972f
SZ
399struct iwl_cfg iwl6000g2a_2abg_cfg = {
400 .name = "6000 Series 2x2 ABG Gen2a",
401 .fw_name_pre = IWL6000G2A_FW_PRE,
402 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
403 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
404 .sku = IWL_SKU_A|IWL_SKU_G,
405 .ops = &iwl6000_ops,
406 .eeprom_size = OTP_LOW_IMAGE_SIZE,
407 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
408 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
409 .num_of_queues = IWLAGN_NUM_QUEUES,
410 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
411 .mod_params = &iwlagn_mod_params,
412 .valid_tx_ant = ANT_AB,
413 .valid_rx_ant = ANT_AB,
414 .pll_cfg_val = 0,
415 .set_l0s = true,
416 .use_bsm = false,
417 .pa_type = IWL_PA_SYSTEM,
418 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
419 .shadow_ram_support = true,
420 .led_compensation = 51,
421 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
422 .supports_idle = true,
423 .adv_thermal_throttle = true,
424 .support_ct_kill_exit = true,
425 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
426 .chain_noise_scale = 1000,
ce60659a 427 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 428 .max_event_log_size = 512,
679db794
WYG
429 .sensitivity_calib_by_driver = true,
430 .chain_noise_calib_by_driver = true,
178d1596 431 .need_dc_calib = true,
1808972f
SZ
432};
433
434struct iwl_cfg iwl6000g2a_2bg_cfg = {
435 .name = "6000 Series 2x2 BG Gen2a",
436 .fw_name_pre = IWL6000G2A_FW_PRE,
437 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
438 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
439 .sku = IWL_SKU_G,
440 .ops = &iwl6000_ops,
441 .eeprom_size = OTP_LOW_IMAGE_SIZE,
442 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
443 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
444 .num_of_queues = IWLAGN_NUM_QUEUES,
445 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
446 .mod_params = &iwlagn_mod_params,
447 .valid_tx_ant = ANT_AB,
448 .valid_rx_ant = ANT_AB,
449 .pll_cfg_val = 0,
450 .set_l0s = true,
451 .use_bsm = false,
452 .pa_type = IWL_PA_SYSTEM,
453 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
454 .shadow_ram_support = true,
455 .led_compensation = 51,
456 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
457 .supports_idle = true,
458 .adv_thermal_throttle = true,
459 .support_ct_kill_exit = true,
460 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
461 .chain_noise_scale = 1000,
ce60659a 462 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 463 .max_event_log_size = 512,
679db794
WYG
464 .sensitivity_calib_by_driver = true,
465 .chain_noise_calib_by_driver = true,
178d1596 466 .need_dc_calib = true,
1808972f
SZ
467};
468
469struct iwl_cfg iwl6000g2b_2agn_cfg = {
470 .name = "6000 Series 2x2 AGN Gen2b",
471 .fw_name_pre = IWL6000G2B_FW_PRE,
472 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
473 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
474 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
475 .ops = &iwl6000g2b_ops,
476 .eeprom_size = OTP_LOW_IMAGE_SIZE,
477 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
478 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
479 .num_of_queues = IWLAGN_NUM_QUEUES,
480 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
481 .mod_params = &iwlagn_mod_params,
482 .valid_tx_ant = ANT_AB,
483 .valid_rx_ant = ANT_AB,
484 .pll_cfg_val = 0,
485 .set_l0s = true,
486 .use_bsm = false,
487 .pa_type = IWL_PA_SYSTEM,
488 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
489 .shadow_ram_support = true,
490 .ht_greenfield_support = true,
491 .led_compensation = 51,
94597ab2 492 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
493 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
494 .supports_idle = true,
495 .adv_thermal_throttle = true,
496 .support_ct_kill_exit = true,
497 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
498 .chain_noise_scale = 1000,
3198c68c 499 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 500 .max_event_log_size = 512,
679db794
WYG
501 .sensitivity_calib_by_driver = true,
502 .chain_noise_calib_by_driver = true,
178d1596 503 .need_dc_calib = true,
af8ee055 504 .bt_statistics = true,
1808972f
SZ
505};
506
507struct iwl_cfg iwl6000g2b_2abg_cfg = {
508 .name = "6000 Series 2x2 ABG Gen2b",
509 .fw_name_pre = IWL6000G2B_FW_PRE,
510 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
511 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
512 .sku = IWL_SKU_A|IWL_SKU_G,
513 .ops = &iwl6000g2b_ops,
514 .eeprom_size = OTP_LOW_IMAGE_SIZE,
515 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
516 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
517 .num_of_queues = IWLAGN_NUM_QUEUES,
518 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
519 .mod_params = &iwlagn_mod_params,
520 .valid_tx_ant = ANT_AB,
521 .valid_rx_ant = ANT_AB,
522 .pll_cfg_val = 0,
523 .set_l0s = true,
524 .use_bsm = false,
525 .pa_type = IWL_PA_SYSTEM,
526 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
527 .shadow_ram_support = true,
528 .led_compensation = 51,
529 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
530 .supports_idle = true,
531 .adv_thermal_throttle = true,
532 .support_ct_kill_exit = true,
533 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
534 .chain_noise_scale = 1000,
3198c68c 535 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 536 .max_event_log_size = 512,
679db794
WYG
537 .sensitivity_calib_by_driver = true,
538 .chain_noise_calib_by_driver = true,
178d1596 539 .need_dc_calib = true,
af8ee055 540 .bt_statistics = true,
1808972f
SZ
541};
542
9f6e1baf
SZ
543struct iwl_cfg iwl6000g2b_2bgn_cfg = {
544 .name = "6000 Series 2x2 BGN Gen2b",
545 .fw_name_pre = IWL6000G2B_FW_PRE,
546 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
547 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
548 .sku = IWL_SKU_G|IWL_SKU_N,
549 .ops = &iwl6000g2b_ops,
550 .eeprom_size = OTP_LOW_IMAGE_SIZE,
551 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
552 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
553 .num_of_queues = IWLAGN_NUM_QUEUES,
554 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
555 .mod_params = &iwlagn_mod_params,
556 .valid_tx_ant = ANT_AB,
557 .valid_rx_ant = ANT_AB,
558 .pll_cfg_val = 0,
559 .set_l0s = true,
560 .use_bsm = false,
561 .pa_type = IWL_PA_SYSTEM,
562 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
563 .shadow_ram_support = true,
564 .ht_greenfield_support = true,
565 .led_compensation = 51,
94597ab2 566 .use_rts_for_aggregation = true, /* use rts/cts protection */
9f6e1baf
SZ
567 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
568 .supports_idle = true,
569 .adv_thermal_throttle = true,
570 .support_ct_kill_exit = true,
571 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
572 .chain_noise_scale = 1000,
3198c68c 573 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
9f6e1baf 574 .max_event_log_size = 512,
679db794
WYG
575 .sensitivity_calib_by_driver = true,
576 .chain_noise_calib_by_driver = true,
178d1596 577 .need_dc_calib = true,
af8ee055 578 .bt_statistics = true,
9f6e1baf
SZ
579};
580
1808972f
SZ
581struct iwl_cfg iwl6000g2b_2bg_cfg = {
582 .name = "6000 Series 2x2 BG Gen2b",
583 .fw_name_pre = IWL6000G2B_FW_PRE,
584 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
585 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
586 .sku = IWL_SKU_G,
587 .ops = &iwl6000g2b_ops,
588 .eeprom_size = OTP_LOW_IMAGE_SIZE,
589 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
590 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
591 .num_of_queues = IWLAGN_NUM_QUEUES,
592 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
593 .mod_params = &iwlagn_mod_params,
594 .valid_tx_ant = ANT_AB,
595 .valid_rx_ant = ANT_AB,
596 .pll_cfg_val = 0,
597 .set_l0s = true,
598 .use_bsm = false,
599 .pa_type = IWL_PA_SYSTEM,
600 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
601 .shadow_ram_support = true,
602 .led_compensation = 51,
603 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
604 .supports_idle = true,
605 .adv_thermal_throttle = true,
606 .support_ct_kill_exit = true,
607 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
608 .chain_noise_scale = 1000,
3198c68c 609 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 610 .max_event_log_size = 512,
679db794
WYG
611 .sensitivity_calib_by_driver = true,
612 .chain_noise_calib_by_driver = true,
178d1596 613 .need_dc_calib = true,
af8ee055 614 .bt_statistics = true,
1808972f
SZ
615};
616
617struct iwl_cfg iwl6000g2b_bgn_cfg = {
618 .name = "6000 Series 1x2 BGN Gen2b",
619 .fw_name_pre = IWL6000G2B_FW_PRE,
620 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
621 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
622 .sku = IWL_SKU_G|IWL_SKU_N,
623 .ops = &iwl6000g2b_ops,
624 .eeprom_size = OTP_LOW_IMAGE_SIZE,
625 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
626 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
627 .num_of_queues = IWLAGN_NUM_QUEUES,
628 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
629 .mod_params = &iwlagn_mod_params,
630 .valid_tx_ant = ANT_A,
631 .valid_rx_ant = ANT_AB,
632 .pll_cfg_val = 0,
633 .set_l0s = true,
634 .use_bsm = false,
635 .pa_type = IWL_PA_SYSTEM,
636 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
637 .shadow_ram_support = true,
638 .ht_greenfield_support = true,
639 .led_compensation = 51,
94597ab2 640 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
641 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
642 .supports_idle = true,
643 .adv_thermal_throttle = true,
644 .support_ct_kill_exit = true,
645 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
646 .chain_noise_scale = 1000,
3198c68c 647 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 648 .max_event_log_size = 512,
679db794
WYG
649 .sensitivity_calib_by_driver = true,
650 .chain_noise_calib_by_driver = true,
178d1596 651 .need_dc_calib = true,
af8ee055 652 .bt_statistics = true,
1808972f
SZ
653};
654
655struct iwl_cfg iwl6000g2b_bg_cfg = {
656 .name = "6000 Series 1x2 BG Gen2b",
657 .fw_name_pre = IWL6000G2B_FW_PRE,
658 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
659 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
660 .sku = IWL_SKU_G,
661 .ops = &iwl6000g2b_ops,
662 .eeprom_size = OTP_LOW_IMAGE_SIZE,
663 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
664 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
665 .num_of_queues = IWLAGN_NUM_QUEUES,
666 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
667 .mod_params = &iwlagn_mod_params,
668 .valid_tx_ant = ANT_A,
669 .valid_rx_ant = ANT_AB,
670 .pll_cfg_val = 0,
671 .set_l0s = true,
672 .use_bsm = false,
673 .pa_type = IWL_PA_SYSTEM,
674 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
675 .shadow_ram_support = true,
676 .led_compensation = 51,
677 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
678 .supports_idle = true,
679 .adv_thermal_throttle = true,
680 .support_ct_kill_exit = true,
681 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
682 .chain_noise_scale = 1000,
3198c68c 683 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 684 .max_event_log_size = 512,
679db794
WYG
685 .sensitivity_calib_by_driver = true,
686 .chain_noise_calib_by_driver = true,
178d1596 687 .need_dc_calib = true,
af8ee055 688 .bt_statistics = true,
1808972f
SZ
689};
690
95b13014
SZ
691/*
692 * "i": Internal configuration, use internal Power Amplifier
693 */
65b7998a 694struct iwl_cfg iwl6000i_2agn_cfg = {
c11362c0 695 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
65b7998a
WYG
696 .fw_name_pre = IWL6000_FW_PRE,
697 .ucode_api_max = IWL6000_UCODE_API_MAX,
698 .ucode_api_min = IWL6000_UCODE_API_MIN,
699 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
700 .ops = &iwl6000_ops,
415e4993 701 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 702 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 703 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
704 .num_of_queues = IWLAGN_NUM_QUEUES,
705 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 706 .mod_params = &iwlagn_mod_params,
65b7998a
WYG
707 .valid_tx_ant = ANT_BC,
708 .valid_rx_ant = ANT_BC,
fadb3582 709 .pll_cfg_val = 0,
a6c5c731 710 .set_l0s = true,
fadb3582 711 .use_bsm = false,
65b7998a 712 .pa_type = IWL_PA_INTERNAL,
415e4993
WYG
713 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
714 .shadow_ram_support = true,
b261793d 715 .ht_greenfield_support = true,
f2d0d0e2 716 .led_compensation = 51,
94597ab2 717 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 718 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 719 .supports_idle = true,
6047b4f9 720 .adv_thermal_throttle = true,
480e8407 721 .support_ct_kill_exit = true,
3e4fb5fa 722 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 723 .chain_noise_scale = 1000,
ce60659a 724 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 725 .max_event_log_size = 1024,
6e5c800e 726 .ucode_tracing = true,
65d1f896
WYG
727 .sensitivity_calib_by_driver = true,
728 .chain_noise_calib_by_driver = true,
e1228374
JS
729};
730
5953a62e 731struct iwl_cfg iwl6000i_2abg_cfg = {
c11362c0 732 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
5953a62e
WYG
733 .fw_name_pre = IWL6000_FW_PRE,
734 .ucode_api_max = IWL6000_UCODE_API_MAX,
735 .ucode_api_min = IWL6000_UCODE_API_MIN,
736 .sku = IWL_SKU_A|IWL_SKU_G,
737 .ops = &iwl6000_ops,
738 .eeprom_size = OTP_LOW_IMAGE_SIZE,
739 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 740 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
741 .num_of_queues = IWLAGN_NUM_QUEUES,
742 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 743 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
744 .valid_tx_ant = ANT_BC,
745 .valid_rx_ant = ANT_BC,
fadb3582 746 .pll_cfg_val = 0,
a6c5c731 747 .set_l0s = true,
fadb3582 748 .use_bsm = false,
5953a62e
WYG
749 .pa_type = IWL_PA_INTERNAL,
750 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
751 .shadow_ram_support = true,
5953a62e 752 .led_compensation = 51,
d8c07e7a 753 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 754 .supports_idle = true,
6047b4f9 755 .adv_thermal_throttle = true,
480e8407 756 .support_ct_kill_exit = true,
3e4fb5fa 757 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 758 .chain_noise_scale = 1000,
ce60659a 759 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 760 .max_event_log_size = 1024,
6e5c800e 761 .ucode_tracing = true,
65d1f896
WYG
762 .sensitivity_calib_by_driver = true,
763 .chain_noise_calib_by_driver = true,
5953a62e
WYG
764};
765
766struct iwl_cfg iwl6000i_2bg_cfg = {
c11362c0 767 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
5953a62e
WYG
768 .fw_name_pre = IWL6000_FW_PRE,
769 .ucode_api_max = IWL6000_UCODE_API_MAX,
770 .ucode_api_min = IWL6000_UCODE_API_MIN,
771 .sku = IWL_SKU_G,
772 .ops = &iwl6000_ops,
773 .eeprom_size = OTP_LOW_IMAGE_SIZE,
774 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 775 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
776 .num_of_queues = IWLAGN_NUM_QUEUES,
777 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 778 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
779 .valid_tx_ant = ANT_BC,
780 .valid_rx_ant = ANT_BC,
fadb3582 781 .pll_cfg_val = 0,
a6c5c731 782 .set_l0s = true,
fadb3582 783 .use_bsm = false,
5953a62e
WYG
784 .pa_type = IWL_PA_INTERNAL,
785 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
786 .shadow_ram_support = true,
5953a62e 787 .led_compensation = 51,
d8c07e7a 788 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 789 .supports_idle = true,
6047b4f9 790 .adv_thermal_throttle = true,
480e8407 791 .support_ct_kill_exit = true,
3e4fb5fa 792 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 793 .chain_noise_scale = 1000,
ce60659a 794 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 795 .max_event_log_size = 1024,
6e5c800e 796 .ucode_tracing = true,
65d1f896
WYG
797 .sensitivity_calib_by_driver = true,
798 .chain_noise_calib_by_driver = true,
5953a62e
WYG
799};
800
e1228374 801struct iwl_cfg iwl6050_2agn_cfg = {
c11362c0 802 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
e1228374
JS
803 .fw_name_pre = IWL6050_FW_PRE,
804 .ucode_api_max = IWL6050_UCODE_API_MAX,
805 .ucode_api_min = IWL6050_UCODE_API_MIN,
806 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
178d1596 807 .ops = &iwl6000_ops,
415e4993 808 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 809 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 810 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
811 .num_of_queues = IWLAGN_NUM_QUEUES,
812 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 813 .mod_params = &iwlagn_mod_params,
542cc793
JS
814 .valid_tx_ant = ANT_AB,
815 .valid_rx_ant = ANT_AB,
fadb3582 816 .pll_cfg_val = 0,
a6c5c731 817 .set_l0s = true,
fadb3582 818 .use_bsm = false,
65b7998a 819 .pa_type = IWL_PA_SYSTEM,
3ab312a8 820 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
415e4993 821 .shadow_ram_support = true,
b261793d 822 .ht_greenfield_support = true,
f2d0d0e2 823 .led_compensation = 51,
94597ab2 824 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 825 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
03264339
SZ
826 .supports_idle = true,
827 .adv_thermal_throttle = true,
828 .support_ct_kill_exit = true,
829 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
830 .chain_noise_scale = 1500,
ce60659a 831 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
03264339
SZ
832 .max_event_log_size = 1024,
833 .ucode_tracing = true,
834 .sensitivity_calib_by_driver = true,
835 .chain_noise_calib_by_driver = true,
836 .need_dc_calib = true,
837};
838
839struct iwl_cfg iwl6050g2_bgn_cfg = {
840 .name = "6050 Series 1x2 BGN Gen2",
841 .fw_name_pre = IWL6050_FW_PRE,
842 .ucode_api_max = IWL6050_UCODE_API_MAX,
843 .ucode_api_min = IWL6050_UCODE_API_MIN,
844 .sku = IWL_SKU_G|IWL_SKU_N,
845 .ops = &iwl6000_ops,
846 .eeprom_size = OTP_LOW_IMAGE_SIZE,
847 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
848 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
849 .num_of_queues = IWLAGN_NUM_QUEUES,
850 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
851 .mod_params = &iwlagn_mod_params,
852 .valid_tx_ant = ANT_A,
853 .valid_rx_ant = ANT_AB,
854 .pll_cfg_val = 0,
855 .set_l0s = true,
856 .use_bsm = false,
857 .pa_type = IWL_PA_SYSTEM,
858 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
859 .shadow_ram_support = true,
860 .ht_greenfield_support = true,
861 .led_compensation = 51,
94597ab2 862 .use_rts_for_aggregation = true, /* use rts/cts protection */
03264339 863 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 864 .supports_idle = true,
6047b4f9 865 .adv_thermal_throttle = true,
480e8407 866 .support_ct_kill_exit = true,
3e4fb5fa 867 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 868 .chain_noise_scale = 1500,
ce60659a 869 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 870 .max_event_log_size = 1024,
6e5c800e 871 .ucode_tracing = true,
65d1f896
WYG
872 .sensitivity_calib_by_driver = true,
873 .chain_noise_calib_by_driver = true,
178d1596 874 .need_dc_calib = true,
e1228374
JS
875};
876
5953a62e 877struct iwl_cfg iwl6050_2abg_cfg = {
c11362c0 878 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
5953a62e
WYG
879 .fw_name_pre = IWL6050_FW_PRE,
880 .ucode_api_max = IWL6050_UCODE_API_MAX,
881 .ucode_api_min = IWL6050_UCODE_API_MIN,
882 .sku = IWL_SKU_A|IWL_SKU_G,
178d1596 883 .ops = &iwl6000_ops,
5953a62e 884 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 885 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 886 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
887 .num_of_queues = IWLAGN_NUM_QUEUES,
888 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 889 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
890 .valid_tx_ant = ANT_AB,
891 .valid_rx_ant = ANT_AB,
fadb3582 892 .pll_cfg_val = 0,
a6c5c731 893 .set_l0s = true,
fadb3582 894 .use_bsm = false,
5953a62e 895 .pa_type = IWL_PA_SYSTEM,
3ab312a8 896 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
5953a62e 897 .shadow_ram_support = true,
5953a62e 898 .led_compensation = 51,
d8c07e7a 899 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 900 .supports_idle = true,
6047b4f9 901 .adv_thermal_throttle = true,
480e8407 902 .support_ct_kill_exit = true,
3e4fb5fa 903 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 904 .chain_noise_scale = 1500,
ce60659a 905 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 906 .max_event_log_size = 1024,
6e5c800e 907 .ucode_tracing = true,
65d1f896
WYG
908 .sensitivity_calib_by_driver = true,
909 .chain_noise_calib_by_driver = true,
178d1596 910 .need_dc_calib = true,
5953a62e
WYG
911};
912
e1228374 913struct iwl_cfg iwl6000_3agn_cfg = {
c11362c0 914 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
e1228374
JS
915 .fw_name_pre = IWL6000_FW_PRE,
916 .ucode_api_max = IWL6000_UCODE_API_MAX,
917 .ucode_api_min = IWL6000_UCODE_API_MIN,
918 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 919 .ops = &iwl6000_ops,
415e4993 920 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 921 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 922 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
923 .num_of_queues = IWLAGN_NUM_QUEUES,
924 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 925 .mod_params = &iwlagn_mod_params,
c0bac76a
JS
926 .valid_tx_ant = ANT_ABC,
927 .valid_rx_ant = ANT_ABC,
fadb3582 928 .pll_cfg_val = 0,
a6c5c731 929 .set_l0s = true,
fadb3582 930 .use_bsm = false,
65b7998a 931 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
932 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
933 .shadow_ram_support = true,
b261793d 934 .ht_greenfield_support = true,
f2d0d0e2 935 .led_compensation = 51,
94597ab2 936 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 937 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 938 .supports_idle = true,
6047b4f9 939 .adv_thermal_throttle = true,
480e8407 940 .support_ct_kill_exit = true,
3e4fb5fa 941 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 942 .chain_noise_scale = 1000,
ce60659a 943 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 944 .max_event_log_size = 1024,
6e5c800e 945 .ucode_tracing = true,
65d1f896
WYG
946 .sensitivity_calib_by_driver = true,
947 .chain_noise_calib_by_driver = true,
e1228374
JS
948};
949
e1228374
JS
950MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
951MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
95b13014 952MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1808972f 953MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));